From 384f43748be35a0395682a07f3cdd0839ebfa544 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Thu, 13 Sep 2018 14:17:45 +0200 Subject: [PATCH] Reorder pandora build --- pandora/lxcfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pandora/lxcfile b/pandora/lxcfile index 1b01a2f..7e56a36 100644 --- a/pandora/lxcfile +++ b/pandora/lxcfile @@ -62,13 +62,6 @@ RUN EOF # Create OS user addgroup -S -g 8002 pandora adduser -S -u 8002 -h /srv/pandora -s /bin/false -g pandora -G pandora pandora - chown -R 8002:8002 /srv/pandora - - # Cleanup - apk --no-cache del .deps - find /srv/pandora -name '.git*' -exec rm -rf {} + - rm -rf /tmp/lib* /tmp/oxframe - rm -rf /root/.cache /root/.ox EOF COPY lxc @@ -89,6 +82,12 @@ RUN EOF ln -s /srv/pandora/conf/gunicorn_config.py gunicorn_config.py ln -s /srv/pandora/conf/local_settings.py local_settings.py chown -R 8002:8002 /srv/pandora + + # Cleanup + apk --no-cache del .deps + find /srv/pandora -name '.git*' -exec rm -rf {} + + rm -rf /tmp/lib* /tmp/oxframe + rm -rf /root/.cache /root/.ox EOF MOUNT /srv/pandora/conf srv/pandora/conf