-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (24 loc) · 946 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Builds the OMSCS course study app
# In addition to files on github, manually setting up .env required
FROM ubuntu:latest
WORKDIR /root/course_study
COPY ["coursexp.py", "etracker.py", "regpage.py", "requirements.txt", ".env", "./"]
# Noninteractive front end required for tzdata install
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
wget \
firefox \
python3.6 \
python3-pip \
tzdata
#Set timezone
RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \
dpkg-reconfigure --frontend noninteractive tzdata
#Set convenient aliases
RUN echo 'alias python=python3.6' >> ~/.bashrc
RUN echo 'alias pip=pip3' >> ~/.bashrc
# Latest geckodriver when dockerfile created
RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.21.0/geckodriver-v0.21.0-linux64.tar.gz \
&& tar -xzf geckodriver* \
&& mv geckodriver /usr/local/bin/
RUN pip3 install -r requirements.txt