diff --git a/contrib/docker/Dockerfile b/contrib/docker/Dockerfile index 07aeece1c..697a63ba8 100644 --- a/contrib/docker/Dockerfile +++ b/contrib/docker/Dockerfile @@ -1,8 +1,8 @@ FROM alpine:3.17 AS builder WORKDIR /tmp ARG hurl_latest_version -RUN apk add git jq curl cargo gcc libffi-dev libxml2-dev libxml2-utils openssl-dev -RUN git clone --quiet --depth 1 --branch ${hurl_latest_version} https://github.com/Orange-OpenSource/hurl.git +RUN apk add --no-cache git=* jq=* curl=* cargo=* gcc=* libffi-dev=* libxml2-dev=* libxml2-utils=* openssl-dev=* && \ + git clone --quiet --depth 1 --branch ${hurl_latest_version} https://github.com/Orange-OpenSource/hurl.git WORKDIR /tmp/hurl RUN cargo build --release --verbose --bin hurl @@ -28,3 +28,4 @@ COPY --from=builder /usr/lib/libxml2.so.2 /usr/lib/ COPY --from=builder /usr/lib/libgcc_s.so.1 /usr/lib/ COPY --from=builder /usr/lib/liblzma.so.5 /usr/lib/ ENTRYPOINT ["/usr/bin/hurl"] +