CI/CD
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user