fix: VPN build, caching, Dockerfile fixes for Iran network
Deploy Canina / deploy (push) Failing after 12s

This commit is contained in:
devops committed 2026-07-27 16:06:59 +00:00
1 parent 027f169830
commit e4c196b080
5 files changed
+431 -107

No files matched your search

+5 -5
View File
@@ -1,13 +1,13 @@
FROM node:22-alpine AS builder
RUN apk add --no-cache openssl
FROM node:20-alpine AS builder
RUN apk add --no-cache openssl 2>/dev/null || true
WORKDIR /app
COPY package*.json ./
RUN npm config set registry http://registry.parsaaghayi.ir/repository/npm-proxy/ && npm ci
RUN npm ci --prefer-offline --no-audit
COPY . .
RUN npx prisma generate && npm run build
FROM node:22-alpine
RUN apk add --no-cache openssl
FROM node:20-alpine
RUN apk add --no-cache openssl 2>/dev/null || true
RUN mkdir -p /app/uploads && chown node:node /app/uploads
WORKDIR /app
COPY --from=builder /app/package*.json ./