From 0bee82043a2d59129fc3c803da3f0f8e480d7677 Mon Sep 17 00:00:00 2001
From: parsa aghaei
Date: Wed, 19 Aug 2026 09:46:19 +0330
Subject: [PATCH] ci: enable tinyproxy routing for prisma build and restore
build scripts
---
Dockerfile | 4 ++--
backend/Dockerfile | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index a4839ab..b534162 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,7 +12,7 @@ RUN if [ -n "$NPM_REGISTRY" ]; then \
fi
COPY frontend/application/package*.json ./
-RUN npm ci --include=dev --prefer-offline --no-audit --ignore-scripts
+RUN npm ci --include=dev --prefer-offline --no-audit
COPY frontend/application ./
ARG NEXT_PUBLIC_API_URL
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
@@ -31,7 +31,7 @@ RUN if [ -n "$NPM_REGISTRY" ]; then \
fi
COPY frontend/admin-panel/package*.json ./
-RUN npm ci --include=dev --prefer-offline --no-audit --ignore-scripts
+RUN npm ci --include=dev --prefer-offline --no-audit
COPY frontend/admin-panel ./
ARG VITE_API_URL
ENV VITE_API_URL=$VITE_API_URL
diff --git a/backend/Dockerfile b/backend/Dockerfile
index 4bb7b46..8eb3c6f 100644
--- a/backend/Dockerfile
+++ b/backend/Dockerfile
@@ -14,9 +14,9 @@ RUN if [ -n "$NPM_REGISTRY" ]; then \
fi
COPY package*.json ./
-RUN npm ci --prefer-offline --no-audit --ignore-scripts
+RUN npm ci --prefer-offline --no-audit
COPY . .
-RUN rm -rf dist && ./node_modules/.bin/prisma generate && npm run build
+RUN http_proxy=http://172.17.0.1:8888 https_proxy=http://172.17.0.1:8888 ./node_modules/.bin/prisma generate && npm run build
FROM node:20-alpine
USER root