diff --git a/docker/Dockerfile b/docker/Dockerfile index cdc9068b..9a576eeb 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -35,7 +35,8 @@ FROM node:20-slim AS frontend-builder WORKDIR /app/frontend COPY --from=builder /app /app RUN npm install --legacy-peer-deps && \ - npm run build + npm run build && \ + find . -maxdepth 1 ! -name '.' ! -name 'dist' -exec rm -rf '{}' \; FROM python:3.13-slim diff --git a/docker/init/03-init-dispatcharr.sh b/docker/init/03-init-dispatcharr.sh index 9417acd8..b9c3c63b 100644 --- a/docker/init/03-init-dispatcharr.sh +++ b/docker/init/03-init-dispatcharr.sh @@ -16,9 +16,7 @@ sed -i "s/NGINX_PORT/${DISPATCHARR_PORT}/g" /etc/nginx/sites-enabled/default if [ "$(id -u)" = "0" ]; then # Needs to own ALL of /data except db, we handle that below chown -R $PUID:$PGID /data - - chown -R $PUID:$PGID /app/logo_cache - chown -R $PUID:$PGID /app/media + chown -R $PUID:$PGID /app # Permissions chown -R postgres:postgres /data/db