-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 819 Bytes
/
Dockerfile
File metadata and controls
33 lines (25 loc) · 819 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
32
33
# https://hub.docker.com/_/node/
FROM node:11 as nodebuilder
ENV NPM_CONFIG_LOGLEVEL info
WORKDIR /app
COPY docker/build_node.sh /build_node.sh
COPY src/ .
RUN /build_node.sh build
# https://hub.docker.com/_/python/
FROM python:3.7
# Install system-requirements
COPY docker/system-requirements.txt /srv/system-requirements.txt
RUN \
apt-get -qq update && \
xargs apt-get -qq install < /srv/system-requirements.txt
# Requirements
COPY docker/requirements.txt /requirements.txt
RUN pip3 install -r /requirements.txt
# Source code
COPY --from=nodebuilder /app /app
WORKDIR /app
COPY ./docker/entrypoint.sh /entrypoint.sh
COPY ./docker/uwsgi.ini /etc/uwsgi/uwsgi.ini
RUN DJANGO_SETTINGS_MODULE=config.settings.local python3 manage.py collectstatic --no-input
ENTRYPOINT ["/entrypoint.sh"]
CMD ["run-uwsgi"]