Fix Dockerfile to use npm start and add start script
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 19s

This commit is contained in:
2026-01-19 23:25:57 +01:00
parent cd04a5c5c1
commit c8b5f2e2d7
2 changed files with 4 additions and 3 deletions

View File

@@ -16,9 +16,9 @@ FROM node:20-alpine
WORKDIR /app
# Copy package.json and install ONLY production dependencies (server deps)
# Copy package.json and install ONLY production dependencies
COPY package*.json ./
RUN npm ci --only=production
RUN npm ci --omit=dev
# Copy built frontend assets
COPY --from=builder /app/dist ./dist
@@ -30,4 +30,4 @@ COPY server.js ./
EXPOSE 3000
# Start server
CMD ["node", "server.js"]
CMD ["npm", "start"]

View File

@@ -6,6 +6,7 @@
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"start": "node server.js",
"lint": "eslint .",
"preview": "vite preview"
},