From e10c1904ec6f7f14a8955909fee2826f22580aa5 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Thu, 18 Jan 2018 20:50:01 +0100 Subject: [PATCH] Generate CTS static resources --- cts/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cts/Dockerfile b/cts/Dockerfile index 486162f..5188810 100644 --- a/cts/Dockerfile +++ b/cts/Dockerfile @@ -25,6 +25,9 @@ RUN \ # Make manage.py globally executable && chmod +x /srv/cts/manage.py \ && ln -s /srv/cts/manage.py /usr/local/bin/manage.py \ + # Compile static files + && sed -i '/debug_toolbar/d' /srv/cts/cts/settings/dev.py \ + && DJANGO_SETTINGS_MODULE=cts.settings.dev manage.py collectstatic -l --noinput \ # Create OS user && addgroup -S -g 8006 cts \ && adduser -S -u 8006 -h /srv/cts -s /bin/false -g cts -G cts cts \ @@ -32,8 +35,7 @@ RUN \ # Cleanup && apk del .deps \ && find /srv/cts -name '.git*' -exec rm -rf {} + \ - && rm -rf /root \ - && mkdir /root + && rm -rf /root/.cache VOLUME ["/srv/cts/cts/settings"] EXPOSE 8006