diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index ee09b2d9..d305393d 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -5,7 +5,9 @@ services: build: context: ./app dockerfile: Dockerfile.prod - command: gunicorn hello_django.wsgi:application --bind 0.0.0.0:8000 + command: > + sh -c "python manage.py collectstatic --noinput && + gunicorn hello_django.wsgi:application --bind 0.0.0.0:8000" volumes: - static_volume:/home/app/web/staticfiles - media_volume:/home/app/web/mediafiles