Update package-lock.json + simplify Dockerfile
This commit is contained in:
+2
-3
@@ -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"]
|
||||
|
||||
Generated
+779
-1237
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user