add docker

This commit is contained in:
Smile Rex
2025-07-20 11:11:07 +03:00
parent ad5d074a42
commit 9da44aa9f6

View File

@@ -0,0 +1,23 @@
FROM node:20-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
COPY . .
RUN npm run build
# Stage 2: Production
FROM node:20-alpine
WORKDIR /app
COPY --from=build /app/build ./build
COPY --from=build /app/package.json ./package.json
RUN npm install --production
EXPOSE 3000
CMD node build/index.js