From 59b92705587369fb7697a6e1a58fbb208b676e14 Mon Sep 17 00:00:00 2001 From: "Claudio Maggioni (maggicl)" Date: Sun, 28 Apr 2019 16:38:17 +0200 Subject: [PATCH] Correction to dockerfile for static file collection --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e4d9698..7eb7bbe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,7 +40,7 @@ COPY . /home/app/code/ 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 CMD ["/usr/sbin/uwsgi", "--ini", "/home/app/code/uwsgi.ini", "--plugin", "python3"]