diff --git a/Dockerfile b/Dockerfile index 41366515096c6503c7e77927356a7c86270cca10..177b8c0258c29f77f7dd74509fc2f54ee28ff690 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,12 @@ COPY . . RUN pip install -r requirements/base.txt -r requirements/prod.txt RUN npm install RUN npm run build -RUN python manage.py collectstatic --noinput --settings=rybicka.settings.prod + +# Placeholder values so the static files collect +RUN DATABASE_URL=postgres://x/x \ + SECRET_KEY=x \ + ALLOWED_HOSTS=x \ + python manage.py collectstatic --noinput --settings=rybicka.settings.prod RUN bash -c "adduser --disabled-login --quiet --gecos app app && \ chmod -R o+r /app/ && \