diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..36e286b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM node:20-alpine AS builder +WORKDIR /app +COPY package*.json ./ +RUN npm ci --production +COPY . . +RUN npm run build --if-present + +FROM node:20-alpine +WORKDIR /app +COPY --from=builder /app . +EXPOSE 3000 +CMD ["node", "src/index.js"]