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