Generate CTS static resources

This commit is contained in:
Disassembler 2018-01-18 20:50:01 +01:00
parent fb945c940b
commit e10c1904ec
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499

View File

@ -25,6 +25,9 @@ RUN \
# Make manage.py globally executable # Make manage.py globally executable
&& chmod +x /srv/cts/manage.py \ && chmod +x /srv/cts/manage.py \
&& ln -s /srv/cts/manage.py /usr/local/bin/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 # Create OS user
&& addgroup -S -g 8006 cts \ && addgroup -S -g 8006 cts \
&& adduser -S -u 8006 -h /srv/cts -s /bin/false -g cts -G cts cts \ && adduser -S -u 8006 -h /srv/cts -s /bin/false -g cts -G cts cts \
@ -32,8 +35,7 @@ RUN \
# Cleanup # Cleanup
&& apk del .deps \ && apk del .deps \
&& find /srv/cts -name '.git*' -exec rm -rf {} + \ && find /srv/cts -name '.git*' -exec rm -rf {} + \
&& rm -rf /root \ && rm -rf /root/.cache
&& mkdir /root
VOLUME ["/srv/cts/cts/settings"] VOLUME ["/srv/cts/cts/settings"]
EXPOSE 8006 EXPOSE 8006