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