Add Dockerfile

This commit is contained in:
Huzaifa Inam 2026-07-28 19:23:31 +00:00
parent 709796f2c6
commit d7eccee7b8

16
Dockerfile Normal file
View file

@ -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"]