Correction to dockerfile for static file collection

This commit is contained in:
Claudio Maggioni (maggicl) 2019-04-28 16:38:17 +02:00
parent 540a6b9d14
commit 59b9270558

View file

@ -40,7 +40,7 @@ COPY . /home/app/code/
RUN chown -R app: /home/app RUN chown -R app: /home/app
RUN python3 /home/app/code/manage.py collectstatic --no-input RUN sh -c "cd /home/app/code && python3 ./manage.py collectstatic --no-input"
EXPOSE 8000 EXPOSE 8000
CMD ["/usr/sbin/uwsgi", "--ini", "/home/app/code/uwsgi.ini", "--plugin", "python3"] CMD ["/usr/sbin/uwsgi", "--ini", "/home/app/code/uwsgi.ini", "--plugin", "python3"]