From 1ef7c6625c8f129c264ddc9bf0a5a8f0c38b99c5 Mon Sep 17 00:00:00 2001 From: krek0 Date: Sun, 3 May 2026 16:42:14 +0200 Subject: [PATCH] Docker, collecstatic at every start --- Dockerfile | 3 --- entrypoint.sh | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 850dd33..f24c177 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,9 +13,6 @@ COPY . . # Create volume mount points RUN mkdir -p /app/media /app/static /app/data -# Collect static files at build time (uses a dummy key, no DB needed) -RUN SECRET_KEY=build-time-placeholder DB_ENGINE=sqlite python manage.py collectstatic --noinput - EXPOSE 8000 RUN chmod +x entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh index 66d574e..fca4a2c 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,7 @@ #!/bin/sh set -e +python manage.py collectstatic --noinput python manage.py migrate --noinput python manage.py create_default_admin exec gunicorn photo21.wsgi:application --bind 0.0.0.0:8000 --workers 3