fix npm bug

This commit is contained in:
2026-10-26 20:07:40 +01:00
parent 941f9105d6
commit c1bb628f22
9 changed files with 70 additions and 6093 deletions
+10 -5
View File
@@ -1,12 +1,17 @@
# Build context is the repo root (npm workspaces share one root package-lock.json)
FROM node:20-alpine
ENV NODE_ENV=production
WORKDIR /backend
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY package.json package-lock.json ./
COPY frontend/package.json frontend/
COPY admin/package.json admin/
COPY backend/package.json backend/
RUN npm ci -w backend --omit=dev
COPY . .
COPY backend/ backend/
WORKDIR /app/backend
EXPOSE 8004
CMD ["npm", "start"]
CMD ["npm", "start"]
+1 -1
View File
@@ -5,7 +5,7 @@
"main": "server.js",
"scripts": {
"dev": "node --watch server.js",
"start": "NODE_ENV=production node server.js\""
"start": "NODE_ENV=production node server.js"
},
"keywords": [],
"author": "",