add docker file

This commit is contained in:
StarAppeal
2025-09-24 06:21:48 +02:00
parent 2796c465c0
commit 4e867d229c
4 changed files with 58 additions and 21 deletions
+24
View File
@@ -0,0 +1,24 @@
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 --production
COPY --from=builder /app/dist ./dist
EXPOSE 3000
CMD [ "node", "dist/index.js" ]