Generate CTS static resources

This commit is contained in:
Disassembler 2018-01-18 20:50:01 +01:00
parent fb945c940b
commit e10c1904ec
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -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