44# We start from my nginx fork which includes the proxy-connect module from tEngine
55# Source is available at https://github.com/rpardini/nginx-proxy-connect-stable-alpine
66# This is already multi-arch!
7- ARG BASE_IMAGE="registry.gitlab.com/coreweave/nginx-proxy-connect-stable-alpine:v1.2 .0"
7+ ARG BASE_IMAGE="registry.gitlab.com/coreweave/nginx-proxy-connect-stable-alpine:v1.5 .0"
88ARG DEBUG_IMAGE
99# Could be "-debug"
1010
1111ARG BASE_IMAGE_SUFFIX="${IMAGE_SUFFIX}"
1212FROM ${BASE_IMAGE}${BASE_IMAGE_SUFFIX}
1313
1414# Link image to original repository on GitHub
15- LABEL org.opencontainers.image.source=https://github.com/rpardini /docker-registry-proxy
15+ LABEL org.opencontainers.image.source=https://github.com/coreweave /docker-registry-proxy
1616
1717# apk packages that will be present in the final image both debug and release
1818RUN apk add --no-cache --update bash ca-certificates-bundle coreutils openssl
@@ -23,11 +23,8 @@ ARG DO_DEBUG_BUILD="${DEBUG_IMAGE:-"0"}"
2323
2424# Build mitmproxy via pip. This is heavy, takes minutes do build and creates a 90mb+ layer. Oh well.
2525RUN [[ "a$DO_DEBUG_BUILD" == "a1" ]] && { echo "Debug build ENABLED." \
26- && apk add --no-cache --update su-exec cargo bsd-compat-headers git g++ libffi libffi-dev libstdc++ openssl-dev python3 python3-dev py3-pip py3-wheel py3-six py3-idna py3-certifi py3-setuptools \
27- && sed -i 's|v3\.\d *|edge|' /etc/apk/repositories \
28- && apk --no-cache upgrade rust \
26+ && apk add --no-cache --update su-exec cargo bsd-compat-headers git g++ libffi libffi-dev libstdc++ openssl-dev python3 python3-dev py3-pip py3-wheel py3-six py3-idna py3-certifi py3-setuptools mitmproxy \
2927 && rm /usr/lib/python3.*/EXTERNALLY-MANAGED \
30- && LDFLAGS=-L/lib pip install MarkupSafe mitmproxy \
3128 && apk del --purge git g++ libffi-dev openssl-dev python3-dev py3-pip py3-wheel \
3229 && rm -rf ~/.cache/pip \
3330 ; } || { echo "Debug build disabled." ; }
@@ -149,8 +146,13 @@ ENV PROXY_CONNECT_READ_TIMEOUT="60s"
149146ENV PROXY_CONNECT_CONNECT_TIMEOUT="60s"
150147ENV PROXY_CONNECT_SEND_TIMEOUT="60s"
151148
152- # Allow disabling IPV6 resolution, default to false
153- ENV DISABLE_IPV6="false"
149+ # Allow disabling IPV6 resolution, default to true
150+ ENV DISABLE_IPV6="true"
151+
152+ # Bitnami dockerhub overrides
153+ ENV BITNAMI_DOCKERHUB_HOST_OVERRIDE="false"
154+ ENV BITNAMI_HOST=""
155+ ENV BITNAMI_LEGACY_DOCKERHUB_URI_REWRITE="false"
154156
155157# Did you want a shell? Sorry, the entrypoint never returns, because it runs nginx itself. Use 'docker exec' if you need to mess around internally.
156158ENTRYPOINT ["/entrypoint.sh" ]
0 commit comments