Allow running docker container as non-root

This commit is contained in:
JuniorJPDJ 2021-09-12 13:33:52 +02:00 committed by Georg Krause
parent a1f03aa5cf
commit 9a3cf4e1dd
3 changed files with 22 additions and 23 deletions

View file

@ -19,8 +19,7 @@ if [ -z "$CELERY_BROKER_URL" ]; then
fi
# we copy the frontend files, if any so we can serve them from the outside
if [ -d "frontend" ]; then
mkdir -p /frontend
if [ -d "frontend" ] && [ -d "/frontend" ]; then
cp -r frontend/* /frontend/
export FUNKWHALE_SPA_HTML_ROOT=/frontend/index.html
fi