File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
# We start from my nginx fork which includes the proxy-connect module from tEngine
2
2
# Source is available at https://github.com/rpardini/nginx-proxy-connect-stable-alpine
3
3
# This is already multi-arch!
4
- ARG BASE_IMAGE="docker.io/rpardini/nginx-proxy-connect-stable-alpine:nginx-1.20.1-alpine-3.12.7"
4
+ ARG BASE_IMAGE="registry.gitlab.com/coreweave/nginx-proxy-connect-stable-alpine:v1.0.1"
5
+ ARG DEBUG_IMAGE
5
6
# Could be "-debug"
7
+
6
8
ARG BASE_IMAGE_SUFFIX="${IMAGE_SUFFIX}"
7
9
FROM ${BASE_IMAGE}${BASE_IMAGE_SUFFIX}
8
10
@@ -13,12 +15,14 @@ LABEL org.opencontainers.image.source https://github.com/rpardini/docker-registr
13
15
RUN apk add --no-cache --update bash ca-certificates-bundle coreutils openssl
14
16
15
17
# If set to 1, enables building mitmproxy, which helps a lot in debugging, but is super heavy to build.
18
+ ARG DEBUG_IMAGE
16
19
ARG DO_DEBUG_BUILD="${DEBUG_IMAGE:-" 0"}"
17
20
18
21
# Build mitmproxy via pip. This is heavy, takes minutes do build and creates a 90mb+ layer. Oh well.
19
22
RUN [[ "a$DO_DEBUG_BUILD" == "a1" ]] && { echo "Debug build ENABLED." \
20
- && apk add --no-cache --update su-exec git g++ libffi libffi-dev libstdc++ openssl-dev python3 python3-dev py3-pip py3-wheel py3-six py3-idna py3-certifi py3-setuptools \
21
- && LDFLAGS=-L/lib pip install MarkupSafe==2.0.1 mitmproxy==5.2 \
23
+ && 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 \
24
+ && rm /usr/lib/python3.*/EXTERNALLY-MANAGED \
25
+ && LDFLAGS=-L/lib pip install MarkupSafe mitmproxy \
22
26
&& apk del --purge git g++ libffi-dev openssl-dev python3-dev py3-pip py3-wheel \
23
27
&& rm -rf ~/.cache/pip \
24
28
; } || { echo "Debug build disabled." ; }
You can’t perform that action at this time.
0 commit comments