From 926bea4721594f6362bbdab83f265ca06fa73872 Mon Sep 17 00:00:00 2001 From: Filipe PINTO Date: Sat, 7 Dec 2024 19:52:42 +0100 Subject: [PATCH] Update Dockerfile to alpine 3.21 --- .github/workflows/package.yml | 2 +- contrib/docker/Dockerfile | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index c6c2f4e8992..55546283b5c 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -315,7 +315,7 @@ jobs: path: | ./**/*.log - test-docker-x64-packages: + test-dockerfile-x64: runs-on: ubuntu-latest steps: - name: Checkout repository diff --git a/contrib/docker/Dockerfile b/contrib/docker/Dockerfile index 94159bce051..8dc3c8ab7ef 100644 --- a/contrib/docker/Dockerfile +++ b/contrib/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETPLATFORM alpine:3.17 AS builder +FROM alpine:3.21 AS builder ARG TARGETPLATFORM WORKDIR /tmp/hurl-docker COPY . /tmp/hurl-docker @@ -11,7 +11,7 @@ RUN apk add --no-cache bash git && \ bash -c "bin/install_rust.sh" && \ bash -c "./bin/release/release.sh" -FROM --platform=$TARGETPLATFORM alpine:3.17 AS runner +FROM alpine:3.21 AS runner ARG docker_build_date ARG docker_build_tag LABEL "org.opencontainers.image.source"="https://github.com/Orange-OpenSource/hurl" @@ -27,10 +27,14 @@ LABEL "com.orange.hurl.vendor"="Orange-OpenSource" LABEL "com.orange.hurl.licenses"="Apache-2.0" LABEL "com.orange.hurl.title"="Hurl" LABEL "com.orange.hurl.description"="Hurl is a command line tool that runs HTTP requests defined in a simple plain text format" -LABEL "com.orange.hurl.base.name"="alpine:3.17" +LABEL "com.orange.hurl.base.name"="alpine:3.21" COPY --from=builder /tmp/hurl-docker/target/release/hurl /usr/bin/ COPY --from=builder /tmp/hurl-docker/target/release/hurlfmt /usr/bin/ COPY --from=builder /usr/lib/libcurl.so.* /usr/lib/ +COPY --from=builder /usr/lib/libcares.so.* /usr/lib/ +COPY --from=builder /usr/lib/libpsl.so.* /usr/lib/ +COPY --from=builder /usr/lib/libzstd.so.* /usr/lib/ +COPY --from=builder /usr/lib/libunistring.so.* /usr/lib/ COPY --from=builder /usr/lib/libnghttp2.so.* /usr/lib/ COPY --from=builder /usr/lib/libbrotli*.so.* /usr/lib/ COPY --from=builder /usr/lib/libxml2.so.* /usr/lib/