ci: enable tinyproxy routing for prisma build and restore build scripts
Some checks failed
Deploy Canina / deploy (push) Has been cancelled
Some checks failed
Deploy Canina / deploy (push) Has been cancelled
This commit is contained in:
parent
9be4ffb7d6
commit
0bee82043a
@ -12,7 +12,7 @@ RUN if [ -n "$NPM_REGISTRY" ]; then \
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
COPY frontend/application/package*.json ./
|
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 ./
|
COPY frontend/application ./
|
||||||
ARG NEXT_PUBLIC_API_URL
|
ARG NEXT_PUBLIC_API_URL
|
||||||
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
|
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
|
||||||
@ -31,7 +31,7 @@ RUN if [ -n "$NPM_REGISTRY" ]; then \
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
COPY frontend/admin-panel/package*.json ./
|
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 ./
|
COPY frontend/admin-panel ./
|
||||||
ARG VITE_API_URL
|
ARG VITE_API_URL
|
||||||
ENV VITE_API_URL=$VITE_API_URL
|
ENV VITE_API_URL=$VITE_API_URL
|
||||||
|
|||||||
@ -14,9 +14,9 @@ RUN if [ -n "$NPM_REGISTRY" ]; then \
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm ci --prefer-offline --no-audit --ignore-scripts
|
RUN npm ci --prefer-offline --no-audit
|
||||||
COPY . .
|
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
|
FROM node:20-alpine
|
||||||
USER root
|
USER root
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user