re-adding in removal of frontend artifacts from dockerfile, re-added chown of /app directory

This commit is contained in:
dekzter 2025-04-07 08:36:11 -04:00
parent 67f282c682
commit 7a90cc8ae3
2 changed files with 3 additions and 4 deletions

View file

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

View file

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