Skip to content

Commit be30eac

Browse files
feat(image): rebase on forked release with 1.25.3 (#36)
switches image base to forked release via https://github.com/coreweave/nginx-proxy-connect-stable-alpine that uses latest stable alpine/nginx versions
1 parent 905b985 commit be30eac

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# We start from my nginx fork which includes the proxy-connect module from tEngine
22
# Source is available at https://github.com/rpardini/nginx-proxy-connect-stable-alpine
33
# 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
56
# Could be "-debug"
7+
68
ARG BASE_IMAGE_SUFFIX="${IMAGE_SUFFIX}"
79
FROM ${BASE_IMAGE}${BASE_IMAGE_SUFFIX}
810

@@ -13,12 +15,14 @@ LABEL org.opencontainers.image.source https://github.com/rpardini/docker-registr
1315
RUN apk add --no-cache --update bash ca-certificates-bundle coreutils openssl
1416

1517
# If set to 1, enables building mitmproxy, which helps a lot in debugging, but is super heavy to build.
18+
ARG DEBUG_IMAGE
1619
ARG DO_DEBUG_BUILD="${DEBUG_IMAGE:-"0"}"
1720

1821
# Build mitmproxy via pip. This is heavy, takes minutes do build and creates a 90mb+ layer. Oh well.
1922
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 \
2226
&& apk del --purge git g++ libffi-dev openssl-dev python3-dev py3-pip py3-wheel \
2327
&& rm -rf ~/.cache/pip \
2428
; } || { echo "Debug build disabled." ; }

0 commit comments

Comments
 (0)