build: make web image dependencies reproducible
This commit is contained in:
+2
-1
@@ -3,9 +3,10 @@ WORKDIR /app
|
||||
ARG PUBLIC_API_URL=http://localhost:8000
|
||||
ENV PUBLIC_API_URL=$PUBLIC_API_URL
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
RUN npm prune --omit=dev --ignore-scripts
|
||||
|
||||
FROM node:22-alpine
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user