mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 18:54:58 +00:00
re-adding in removal of frontend artifacts from dockerfile, re-added chown of /app directory
This commit is contained in:
parent
67f282c682
commit
7a90cc8ae3
2 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue