Fix frontend container app dir ownership for Vite
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user