Skip to content

Commit

Permalink
Moved collectstatic to the build and not the CMD.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhedegaard committed Apr 30, 2021
1 parent c02aa13 commit ceaf384
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Expand Up @@ -17,8 +17,8 @@ RUN pip install -r requirements.txt -r requirements.prod.txt
ENV PORT 8080
EXPOSE ${PORT}

RUN python manage.py test
RUN python manage.py test && \
python manage.py collectstatic -c --noinput

CMD python manage.py collectstatic -c --noinput && \
python manage.py migrate && \
CMD python manage.py migrate && \
gunicorn webchat.wsgi -w 10

0 comments on commit ceaf384

Please sign in to comment.