Skip to content

Commit 0b068c5

Browse files
committed
fix(build): temporarily source rust from alpine edge
needed rust 1.80 from current edge for debug mitmproxy build
1 parent 4ad3051 commit 0b068c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ ARG DO_DEBUG_BUILD="${DEBUG_IMAGE:-"0"}"
2121
# Build mitmproxy via pip. This is heavy, takes minutes do build and creates a 90mb+ layer. Oh well.
2222
RUN [[ "a$DO_DEBUG_BUILD" == "a1" ]] && { echo "Debug build ENABLED." \
2323
&& 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+
&& sed -i 's|v3\.\d*|edge|' /etc/apk/repositories \
25+
&& apk --no-cache upgrade rust \
2426
&& rm /usr/lib/python3.*/EXTERNALLY-MANAGED \
2527
&& LDFLAGS=-L/lib pip install MarkupSafe mitmproxy \
2628
&& apk del --purge git g++ libffi-dev openssl-dev python3-dev py3-pip py3-wheel \

0 commit comments

Comments
 (0)