Fix frontend container app dir ownership for Vite

This commit is contained in:
2026-02-21 14:49:23 -03:00
parent 74a6551237
commit b25e508a00
2 changed files with 5 additions and 0 deletions

View File

@@ -102,6 +102,10 @@ Selected defaults from `Settings` (`backend/app/core/config.py`):
Frontend runtime API target:
- `VITE_API_BASE` in `docker-compose.yml` frontend service
Frontend container runtime behavior:
- the container runs as non-root `node`
- `/app` is owned by `node` in `frontend/Dockerfile` so Vite can create runtime temp config files under `/app`
Frontend local commands:
```bash

View File

@@ -5,6 +5,7 @@ WORKDIR /app
COPY package.json /app/package.json
COPY package-lock.json /app/package-lock.json
RUN npm ci
RUN chown -R node:node /app
COPY --chown=node:node tsconfig.json /app/tsconfig.json
COPY --chown=node:node tsconfig.node.json /app/tsconfig.node.json