-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker.full.Dockerfile
36 lines (28 loc) · 833 Bytes
/
docker.full.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
26
27
28
29
30
31
32
33
34
35
36
# syntax = devthefuture/dockerfile-x
FROM ./docker.base.Dockerfile
# possible Dockerfile arguments
ARG CI_COMMIT_BRANCH='dev'
ARG CI_COMMIT_SHA='latest'
ENV COMMIT_BRANCH=$CI_COMMIT_BRANCH
ENV COMMIT_SHA=$CI_COMMIT_SHA
# install app dependencies
WORKDIR $APPDIR
COPY requirements.full.txt ./requirements.full.txt
RUN pip install -r requirements.full.txt
# copy the code base
COPY www $DJANGODIR
# setup server runtime
ENTRYPOINT ["bash", "/srv/docker-entrypoint.sh", "--migrate"]
CMD [ "gunicorn", \
"--bind", ":8080", \
"--workers", "3", \
"--worker-class", "sync", \
"--log-level", "info", \
"--log-file", "-", \
"--forwarded-allow-ips", "*", \
"--pid", "gunicorn.pid", \
"--timeout", "60", \
"--max-requests", "1000", \
"wsgi:application" \
]
WORKDIR $DJANGODIR