summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-06-05 11:37:28 +0100
committerMatthew Lemon <y@yulqen.org>2024-06-05 11:37:28 +0100
commitd669200cc25e1ecd224ae83ac2b59de889923498 (patch)
tree77a73c75c7e34cdc9ebd35c437e7cc7871100c45 /Dockerfile
parentb644ddd09a045c59d5d0d1f451de96962b368cac (diff)
Adds docker-entrypoint script
Diffstat (limited to '')
-rw-r--r--Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index b1e06d7..103b14e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,7 +17,6 @@ ENV DJANGO_SETTINGS_MODULE=conf.settings.prod
# Install Python dependencies
RUN pip install -U "pip>=24.0.0" && \
pip install -r requirements.txt && \
- python manage.py collectstatic --noinput
RUN mkdir -p /app/static/css /app/static/js /app/static/img
@@ -25,4 +24,6 @@ RUN mkdir -p /app/static/css /app/static/js /app/static/img
USER 1001
# Start app
-CMD ["gunicorn", "ded.wsgi:application", "--bind", "0.0.0.0:8000"]
+
+RUN chmod +x docker-entrypoint.sh
+ENTRYPOINT ["/app/docker-entrypoint.sh"]