fix(backend): use proxy during prisma generate and build
Some checks failed
Deploy Canina / deploy (push) Has been cancelled

This commit is contained in:
parsa aghaei 2026-08-15 16:19:42 +03:30
parent 2a69654e96
commit f3ec164c38

View File

@ -15,7 +15,7 @@ RUN if [ -n "$NPM_REGISTRY" ]; then \
COPY package*.json ./
RUN npm ci --prefer-offline --no-audit
COPY . .
RUN ./node_modules/.bin/prisma generate && npm run build
RUN https_proxy=http://172.17.0.1:8888 http_proxy=http://172.17.0.1:8888 ./node_modules/.bin/prisma generate && npm run build
FROM node:20-alpine
USER root