mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-01-11 20:00:26 +01:00
feat: speedup startup by moving collectstatic to the Dockerfile
This commit is contained in:
@@ -74,5 +74,6 @@ RUN chown -R app:app /usr/src/app && \
|
|||||||
USER app
|
USER app
|
||||||
|
|
||||||
RUN python manage.py compilemessages --settings "WYGIWYH.settings"
|
RUN python manage.py compilemessages --settings "WYGIWYH.settings"
|
||||||
|
RUN python manage.py collectstatic --noinput
|
||||||
|
|
||||||
CMD ["/start-single"]
|
CMD ["/start-single"]
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ INTERNAL_PORT=${INTERNAL_PORT:-8000}
|
|||||||
# Remove flag file if it exists from previous run
|
# Remove flag file if it exists from previous run
|
||||||
rm -f /tmp/migrations_complete
|
rm -f /tmp/migrations_complete
|
||||||
|
|
||||||
python manage.py collectstatic --noinput
|
|
||||||
python manage.py migrate
|
python manage.py migrate
|
||||||
|
|
||||||
# Create flag file to signal migrations are complete
|
# Create flag file to signal migrations are complete
|
||||||
|
|||||||
Reference in New Issue
Block a user