Skip to content

Commit

Permalink
Merge pull request #24 from concourse/curl-proxy
Browse files Browse the repository at this point in the history
Download static curl from moparisthebest/static-curl
  • Loading branch information
Rui Yang committed Oct 26, 2023
2 parents 3ea1fcd + c9b4891 commit 3a48aba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ FROM ${builder_image} AS tests
USER root
RUN apt update && apt upgrade -y -o Dpkg::Options::="--force-confdef"
RUN apt update && apt install -y --no-install-recommends \
wget \
curl \
ca-certificates \
jq \
ruby-full \
&& rm -rf /var/lib/apt/lists/*
ADD assets/ /opt/resource/
RUN wget "https://github.com/moparisthebest/static-curl/releases/download/v8.4.0/curl-amd64" -O /opt/resource/curl
RUN chmod +x /opt/resource/*
ADD . /resource
WORKDIR /resource
Expand All @@ -25,7 +27,7 @@ COPY --from=busybox:uclibc /bin/mkdir /bin/
COPY --from=busybox:uclibc /bin/sha256sum /bin/
COPY --from=busybox:uclibc /bin/sha1sum /bin/
COPY --from=stedolan/jq /usr/local/bin/jq /bin/
COPY --from=curlimages/curl /usr/bin/curl /bin/
COPY --from=tests /opt/resource/curl /bin/

ADD assets/ /opt/resource/
RUN chmod +x /opt/resource/*
Expand Down

0 comments on commit 3a48aba

Please sign in to comment.