-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 811 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (21 loc) · 811 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
FROM alpine:3.8
# expose web server port
# only http, for ssl use reverse proxy
EXPOSE 80
#build tools for Flask-SQLAlchemy-->cffi
RUN apk add --no-cache bash git nginx uwsgi uwsgi-python3 python3-dev libffi-dev alpine-sdk postgresql-dev graphviz ttf-dejavu jpeg-dev zlib-dev\
&& pip3 install --upgrade pip
# application folder
ENV APP_DIR /app
VOLUME [ "/app/migrations", "/app/config" ]
# app dir
COPY webapp ${APP_DIR}/webapp
COPY .git/HEAD ${APP_DIR}/version.txt
COPY app.ini app.py babel.cfg config.py.example entrypoint.sh manage.py requirements.txt tests.py worker.py ${APP_DIR}/
COPY nginx.conf /etc/nginx/nginx.conf
RUN chmod 777 -R /run/
WORKDIR ${APP_DIR}
RUN pip3 install -r requirements.txt
RUN python3 manage.py pybabel_compile
# exectute start up script
ENTRYPOINT ["/app/entrypoint.sh"]