Merge pull request #461 from eitchtee/dev

feat: speedup startup by moving collectstatic to the Dockerfile
This commit is contained in:
Herculino Trotta
2025-12-19 22:18:20 -03:00
committed by GitHub
2 changed files with 1 additions and 1 deletions

View File

@@ -74,5 +74,6 @@ RUN chown -R app:app /usr/src/app && \
USER app
RUN python manage.py compilemessages --settings "WYGIWYH.settings"
RUN python manage.py collectstatic --noinput
CMD ["/start-single"]

View File

@@ -10,7 +10,6 @@ INTERNAL_PORT=${INTERNAL_PORT:-8000}
# Remove flag file if it exists from previous run
rm -f /tmp/migrations_complete
python manage.py collectstatic --noinput
python manage.py migrate
# Create flag file to signal migrations are complete