diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6c3a2ab --- /dev/null +++ b/Dockerfile @@ -0,0 +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 AS runner +WORKDIR /app +ENV NODE_ENV=production +ENV PORT=3000 +COPY package*.json ./ +RUN npm install --omit=dev +COPY --from=builder /app/dist ./dist +EXPOSE 3000 +CMD ["node", "dist/server.cjs"] \ No newline at end of file