Add docker file

This commit is contained in:
marzban-dev
2024-12-11 20:19:54 +03:30
parent ebeb5a5de0
commit 6e9311976a
-13
View File
@@ -1,13 +0,0 @@
FROM node:20-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM node:20-alpine as production-stage
WORKDIR /app
COPY --from=build-stage /app /app
EXPOSE 3000
ENV NODE_ENV=production
CMD ["npm", "run", "start"]