improvement: fixed some package.json issues. readme files updated.

This commit is contained in:
2026-05-05 00:01:06 +03:30
parent 4c61885cef
commit 15ef17228f
15 changed files with 23445 additions and 228 deletions

View File

@@ -1,18 +1,19 @@
# ============================================
# STAGE 1: BUILDER STAGE
# ============================================
FROM node:18-alpine AS builder
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
COPY .npmrc ./
COPY prisma ./prisma/
RUN npm ci
COPY . .
RUN npx prisma generate
RUN npm run prisma:generate
RUN npm run build
RUN npm prune --production
@@ -20,7 +21,7 @@ RUN npm prune --production
# ============================================
# STAGE 2: PRODUCTION STAGE
# ============================================
FROM node:18-alpine
FROM node:20-alpine
RUN apk add --no-cache dumb-init
@@ -29,14 +30,10 @@ WORKDIR /app
RUN addgroup -g 1001 -S nodejs && \
adduser -S dyolink -u 1001
# Prisma client comes from the builder (npm prune --production keeps @prisma/client).
COPY package*.json ./
COPY prisma ./prisma/
RUN npm ci --only=production && \
npm cache clean --force
RUN npx prisma generate
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules