Docker, collecstatic at every start
All checks were successful
Docker / build (release) Successful in 8s

This commit is contained in:
krek0 2026-05-03 16:42:14 +02:00
parent 40c012523d
commit 1ef7c6625c
2 changed files with 1 additions and 3 deletions

View file

@ -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

View file

@ -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