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