Generate CTS static resources
This commit is contained in:
parent
fb945c940b
commit
e10c1904ec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user