-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 692 Bytes
/
Dockerfile
File metadata and controls
31 lines (24 loc) · 692 Bytes
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
26
27
28
29
30
31
FROM ubuntu:xenial
RUN apt-get update && apt-get install -y \
python3-dev \
python3-pip \
nginx
RUN pip3 install flask
RUN pip3 install flask-restplus
RUN pip3 install uwsgi
RUN pip3 install psycopg2-binary
RUN pip3 install flask-sqlalchemy
RUN pip3 install flask-migrate
RUN pip3 install flask-wtf
RUN pip3 install itsdangerous
RUN pip3 install flask-mail
RUN pip3 install flask-login
EXPOSE 80
VOLUME /var/log/flaskapp
VOLUME /home/user_files/flaskapp
COPY site.conf /etc/nginx/sites-available
RUN ln -s /etc/nginx/sites-available/site.conf /etc/nginx/sites-enabled
COPY startup.sh /home
RUN chmod 777 /home/startup.sh
CMD ["bash","/home/startup.sh"]
COPY flaskapp /home/