collectstatic is essential in command section

This commit is contained in:
guntherweissenbaeck 2023-07-21 16:02:58 +00:00
parent 692d60a261
commit 56d3797c35

View file

@ -5,7 +5,7 @@ services:
build: build:
context: ./app context: ./app
dockerfile: Dockerfile.prod dockerfile: Dockerfile.prod
command: bash -c 'while !</dev/tcp/db/5432; do sleep 1; done; gunicorn --bind 0.0.0.0:8000 core.wsgi' command: bash -c 'while !</dev/tcp/db/5432; do sleep 1; done; python manage.py collectstatic; gunicorn --bind 0.0.0.0:8000 core.wsgi'
expose: expose:
- 8000 - 8000
environment: environment: