OcrStep bileşeninde BASE_URL kontrolü güncellendi; Dockerfile ve docker-compose.yml dosyaları eklendi; geliştirme ve üretim ortamları için yapılandırmalar oluşturuldu.

This commit is contained in:
2025-11-11 00:49:51 +03:00
parent 3a82bf9ea6
commit 947ac0daf0
5 changed files with 123 additions and 8 deletions

19
server/Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
# syntax=docker/dockerfile:1.6
ARG NODE_VERSION=20
FROM node:${NODE_VERSION}-alpine AS base
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
FROM base AS dev
ENV NODE_ENV=development
EXPOSE 4000
CMD ["npm", "run", "dev"]
FROM base AS prod
ENV NODE_ENV=production
EXPOSE 4000
CMD ["node", "index.js"]