fix(docker): remove hardcoded corporate proxy and jfrog registry from Dockerfiles
This commit is contained in:
parent
e9f4aedb7a
commit
e9dc45d9bc
@ -2,15 +2,11 @@ FROM node:22-alpine AS builder
|
||||
WORKDIR /app/backend
|
||||
|
||||
ARG GITEA_NPM_HOST
|
||||
ENV HTTP_PROXY=http://cso.proxy.att.com:8080/
|
||||
ENV HTTPS_PROXY=http://cso.proxy.att.com:8080/
|
||||
ENV NO_PROXY=localhost,127.0.0.1,host.docker.internal,gateway.docker.internal,192.168.65.254,192.168.86.40
|
||||
ENV NODE_TLS_REJECT_UNAUTHORIZED=0
|
||||
ENV NPM_CONFIG_STRICT_SSL=false
|
||||
ENV GITEA_NPM_HOST=$GITEA_NPM_HOST
|
||||
|
||||
RUN npm config set strict-ssl false \
|
||||
&& npm config set registry https://jfrog-pkg-proxy.it.att.com/artifactory/api/npm/att-npm-proxy-group/ \
|
||||
&& npm install -g pnpm@10.6.5
|
||||
|
||||
COPY .npmrc.docker ./.npmrc
|
||||
@ -28,11 +24,7 @@ RUN pnpm run build
|
||||
FROM node:22-alpine
|
||||
WORKDIR /app/backend
|
||||
ENV NODE_ENV=production
|
||||
ENV HTTP_PROXY=http://cso.proxy.att.com:8080/
|
||||
ENV HTTPS_PROXY=http://cso.proxy.att.com:8080/
|
||||
ENV NO_PROXY=localhost,127.0.0.1,host.docker.internal,gateway.docker.internal,192.168.65.254,192.168.86.40
|
||||
ENV NODE_TLS_REJECT_UNAUTHORIZED=0
|
||||
ENV NPM_CONFIG_STRICT_SSL=false
|
||||
|
||||
COPY --from=builder /app/backend/node_modules ./node_modules
|
||||
COPY --from=builder /app/backend/package.json ./package.json
|
||||
|
||||
@ -2,15 +2,11 @@ FROM node:22-alpine AS builder
|
||||
WORKDIR /app/web
|
||||
|
||||
ARG GITEA_NPM_HOST
|
||||
ENV HTTP_PROXY=http://cso.proxy.att.com:8080/
|
||||
ENV HTTPS_PROXY=http://cso.proxy.att.com:8080/
|
||||
ENV NO_PROXY=localhost,127.0.0.1,host.docker.internal,gateway.docker.internal,192.168.65.254,192.168.86.40
|
||||
ENV NODE_TLS_REJECT_UNAUTHORIZED=0
|
||||
ENV NPM_CONFIG_STRICT_SSL=false
|
||||
ENV GITEA_NPM_HOST=$GITEA_NPM_HOST
|
||||
|
||||
RUN npm config set strict-ssl false \
|
||||
&& npm config set registry https://jfrog-pkg-proxy.it.att.com/artifactory/api/npm/att-npm-proxy-group/ \
|
||||
&& npm install -g pnpm@10.6.5
|
||||
|
||||
COPY .npmrc.docker ./.npmrc
|
||||
@ -32,11 +28,7 @@ FROM node:22-alpine
|
||||
WORKDIR /app/web
|
||||
ENV NODE_ENV=production
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV HTTP_PROXY=http://cso.proxy.att.com:8080/
|
||||
ENV HTTPS_PROXY=http://cso.proxy.att.com:8080/
|
||||
ENV NO_PROXY=localhost,127.0.0.1,host.docker.internal,gateway.docker.internal,192.168.65.254,192.168.86.40
|
||||
ENV NODE_TLS_REJECT_UNAUTHORIZED=0
|
||||
ENV NPM_CONFIG_STRICT_SSL=false
|
||||
|
||||
COPY --from=builder /app/web/.next/standalone ./
|
||||
COPY --from=builder /app/web/.next/static ./.next/static
|
||||
|
||||
Loading…
Reference in New Issue
Block a user