feat(docker): Add .dockerignore and update Dockerfile for production build

This commit is contained in:
StarAppeal
2025-09-27 05:02:28 +02:00
parent 82e5e6c810
commit c380b56cbe
4 changed files with 11 additions and 22 deletions
-5
View File
@@ -1,21 +1,16 @@
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --omit=dev
COPY --from=builder /app/dist ./dist