diff --git a/backend/Dockerfile b/backend/Dockerfile index 8b2bb5c..d64be92 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -4,17 +4,18 @@ RUN http_proxy=http://172.17.0.1:8888 https_proxy=http://172.17.0.1:8888 apk add WORKDIR /app ENV PRISMA_SKIP_POSTINSTALL_GENERATE=true ENV PRISMA_ENGINES_MIRROR=https://registry.npmmirror.com/-/binary/prisma +ENV DISABLE_OPENCOLLECTIVE=1 # Optional: Use Nexus as npm registry (pass --build-arg NPM_REGISTRY=http://nexus:8081/repository/npm/) ARG NPM_REGISTRY= RUN if [ -n "$NPM_REGISTRY" ]; then \ - npm config set registry "$NPM_REGISTRY" && \ - npm config set strict-ssl false && \ - echo "Using npm registry: $NPM_REGISTRY"; \ + npm config set registry "$NPM_REGISTRY" && \ + npm config set strict-ssl false && \ + echo "Using npm registry: $NPM_REGISTRY"; \ fi COPY package*.json ./ -RUN http_proxy=http://172.17.0.1:8888 https_proxy=http://172.17.0.1:8888 no_proxy=172.17.0.2,localhost,127.0.0.1 npm ci --prefer-offline --no-audit +RUN http_proxy=http://172.17.0.1:8888 https_proxy=http://172.17.0.1:8888 DISABLE_OPENCOLLECTIVE=1 npm ci --prefer-offline --no-audit COPY . . 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