This commit is contained in:
2026-03-20 23:40:52 +03:30
parent 486b8be26b
commit 6b4eb16733
7 changed files with 334 additions and 32 deletions
+3
View File
@@ -1,5 +1,6 @@
# Stage 1: Dependencies
FROM node:20-alpine AS deps
RUN npm config set registry https://package-mirror.liara.ir/repository/npm/
# Install OpenSSL for Prisma
RUN apk add --no-cache openssl libc6-compat
WORKDIR /app
@@ -12,6 +13,7 @@ RUN npm install --ignore-scripts
# Stage 2: Builder
FROM node:20-alpine AS builder
RUN npm config set registry https://package-mirror.liara.ir/repository/npm/
# Install OpenSSL for Prisma
RUN apk add --no-cache openssl libc6-compat
WORKDIR /app
@@ -49,6 +51,7 @@ RUN npm run build
# Stage 3: Runner
FROM node:20-alpine AS runner
RUN npm config set registry https://package-mirror.liara.ir/repository/npm/
WORKDIR /app
ENV NODE_ENV=production