ci: enable tinyproxy routing for prisma build and restore build scripts
Deploy Canina / deploy (push) Has been cancelled
Deploy Canina / deploy (push) Has been cancelled
This commit is contained in:
1 parent
9be4ffb7d6
commit
0bee82043a
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user