forked from svthalia/concrexit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (21 loc) · 914 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
26
27
28
FROM thalia/concrexit-dependencies
MAINTAINER Thalia Technicie <www@thalia.nu>
LABEL description="Contains the Thaliawebsite Django application"
ARG install_dev_requirements=1
ARG source_commit="unknown"
ENV PYTHONUNBUFFERED 1
ENV SOURCE_COMMIT=${source_commit}
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
COPY resources/entrypoint.sh resources/entrypoint_production.sh /usr/local/bin/
RUN if [ "$install_dev_requirements" -eq 1 ]; then \
poetry install --no-interaction --extras "docs"; \
else \
poetry install --no-interaction --no-dev; \
fi; \
poetry cache clear --all --no-interaction pypi
RUN mkdir --parents /concrexit/log/ && \
touch /concrexit/log/uwsgi.log && \
chown --recursive www-data:www-data /concrexit/ && \
chmod +x /usr/local/bin/entrypoint.sh /usr/local/bin/entrypoint_production.sh
COPY website /usr/src/app/website/
WORKDIR /usr/src/app/website/