docker added

This commit is contained in:
2026-05-24 07:31:00 +03:30
parent 2a22bab127
commit 1be87bc349
2 changed files with 22 additions and 0 deletions

7
.dockerignore Normal file
View File

@@ -0,0 +1,7 @@
node_modules
npm-debug.log
Dockerfile
.dockerignore
.git
.env
dist

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM node:20-alpine
WORKDIR /src
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
# اگر TypeScript داری و build لازم است، این دو خط را فعال کن:
# RUN npm run build
# سپس CMD را ببر روی dist
EXPOSE 4000
CMD ["npm","start"]