Update package-lock.json + simplify Dockerfile
This commit is contained in:
parent
bcbc76bf43
commit
d702cdb611
@ -2,7 +2,7 @@
|
||||
FROM node:20-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
RUN npm install --no-audit --no-fund
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
@ -10,8 +10,7 @@ FROM node:20-alpine
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
COPY package*.json ./
|
||||
RUN npm ci --omit=dev && npm cache clean --force
|
||||
RUN npm install --omit=dev --no-audit --no-fund && npm cache clean --force
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY --from=builder /app/client/dist ./client/dist 2>/dev/null || true
|
||||
EXPOSE 5000
|
||||
CMD ["npm", "run", "start"]
|
||||
|
||||
2016
package-lock.json
generated
2016
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user