Skip to content

Commit 3a48aba

Browse files
author
Rui Yang
authored
Merge pull request #24 from concourse/curl-proxy
Download static curl from moparisthebest/static-curl
2 parents 3ea1fcd + c9b4891 commit 3a48aba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ FROM ${builder_image} AS tests
55
USER root
66
RUN apt update && apt upgrade -y -o Dpkg::Options::="--force-confdef"
77
RUN apt update && apt install -y --no-install-recommends \
8+
wget \
89
curl \
910
ca-certificates \
1011
jq \
1112
ruby-full \
1213
&& rm -rf /var/lib/apt/lists/*
1314
ADD assets/ /opt/resource/
15+
RUN wget "https://github.com/moparisthebest/static-curl/releases/download/v8.4.0/curl-amd64" -O /opt/resource/curl
1416
RUN chmod +x /opt/resource/*
1517
ADD . /resource
1618
WORKDIR /resource
@@ -25,7 +27,7 @@ COPY --from=busybox:uclibc /bin/mkdir /bin/
2527
COPY --from=busybox:uclibc /bin/sha256sum /bin/
2628
COPY --from=busybox:uclibc /bin/sha1sum /bin/
2729
COPY --from=stedolan/jq /usr/local/bin/jq /bin/
28-
COPY --from=curlimages/curl /usr/bin/curl /bin/
30+
COPY --from=tests /opt/resource/curl /bin/
2931

3032
ADD assets/ /opt/resource/
3133
RUN chmod +x /opt/resource/*

0 commit comments

Comments
 (0)