Reorder pandora build

This commit is contained in:
Disassembler 2018-09-13 14:17:45 +02:00
parent 629e247570
commit 384f43748b
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

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