diff --git a/bitnami/dotnet-sdk/6/debian-11/Dockerfile b/bitnami/dotnet-sdk/6/debian-11/Dockerfile index 0655d36a0ac8..8aea2e3aff99 100644 --- a/bitnami/dotnet-sdk/6/debian-11/Dockerfile +++ b/bitnami/dotnet-sdk/6/debian-11/Dockerfile @@ -1,28 +1,32 @@ FROM docker.io/bitnami/minideb:bullseye -ENV HOME="/app" \ - OS_ARCH="amd64" \ - OS_FLAVOUR="debian-11" \ - OS_NAME="linux" + +ARG TARGETARCH LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \ org.opencontainers.image.description="Application packaged by Bitnami" \ - org.opencontainers.image.ref.name="6.0.400-debian-11-r7" \ + org.opencontainers.image.ref.name="6.0.400-debian-11-r9" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/dotnet-sdk" \ org.opencontainers.image.title="dotnet-sdk" \ org.opencontainers.image.vendor="VMware, Inc." \ org.opencontainers.image.version="6.0.400" +ENV HOME="/app" \ + OS_ARCH="${TARGETARCH:-amd64}" \ + OS_FLAVOUR="debian-11" \ + OS_NAME="linux" + COPY prebuildfs / SHELL ["/bin/bash", "-o", "pipefail", "-c"] # Install required system packages and dependencies RUN install_packages build-essential ca-certificates curl git gzip libc6 libcap2-bin libgcc-s1 libicu-dev liblttng-ust-dev libsqlite3-dev libssl-dev libstdc++6 pkg-config procps tar unzip wget zlib1g RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \ - if [ ! -f dotnet-sdk-6.0.400-1-linux-amd64-debian-11.tar.gz ]; then \ - curl -SsLf https://downloads.bitnami.com/files/stacksmith/dotnet-sdk-6.0.400-1-linux-amd64-debian-11.tar.gz -O ; \ + if [ ! -f dotnet-sdk-6.0.400-1-linux-${OS_ARCH}-debian-11.tar.gz ]; then \ + curl -SsLf https://downloads.bitnami.com/files/stacksmith/dotnet-sdk-6.0.400-1-linux-${OS_ARCH}-debian-11.tar.gz -O ; \ + curl -SsLf https://downloads.bitnami.com/files/stacksmith/dotnet-sdk-6.0.400-1-linux-${OS_ARCH}-debian-11.tar.gz.sha256 -O ; \ fi && \ - echo "50108f0528b871060a86c45b33bd568cd029ab5ad0bc372304d585dbc7131bc0 dotnet-sdk-6.0.400-1-linux-amd64-debian-11.tar.gz" | sha256sum -c - && \ - tar -zxf dotnet-sdk-6.0.400-1-linux-amd64-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \ - rm -rf dotnet-sdk-6.0.400-1-linux-amd64-debian-11.tar.gz + sha256sum -c dotnet-sdk-6.0.400-1-linux-${OS_ARCH}-debian-11.tar.gz.sha256 && \ + tar -zxf dotnet-sdk-6.0.400-1-linux-${OS_ARCH}-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \ + rm -rf dotnet-sdk-6.0.400-1-linux-${OS_ARCH}-debian-11.tar.gz RUN apt-get update && apt-get upgrade -y && \ rm -r /var/lib/apt/lists /var/cache/apt/archives RUN sed -i 's/^PASS_MAX_DAYS.*/PASS_MAX_DAYS 90/' /etc/login.defs && \ diff --git a/bitnami/dotnet-sdk/README.md b/bitnami/dotnet-sdk/README.md index 19a4a7bc0a2b..5efdcd81ff25 100644 --- a/bitnami/dotnet-sdk/README.md +++ b/bitnami/dotnet-sdk/README.md @@ -35,7 +35,7 @@ $ docker-compose up -d Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/). -* [`6`, `6-debian-11`, `6.0.400`, `6.0.400-debian-11-r8`, `latest` (6/debian-11/Dockerfile)](https://github.com/bitnami/containers/blob/main/bitnami/dotnet-sdk/6/debian-11/Dockerfile) +* [`6`, `6-debian-11`, `6.0.400`, `6.0.400-debian-11-r9`, `latest` (6/debian-11/Dockerfile)](https://github.com/bitnami/containers/blob/main/bitnami/dotnet-sdk/6/debian-11/Dockerfile) * [`3.1`, `3.1-debian-11`, `3.1.422`, `3.1.422-debian-11-r8` (3.1/debian-11/Dockerfile)](https://github.com/bitnami/containers/blob/main/bitnami/dotnet-sdk/3.1/debian-11/Dockerfile) Subscribe to project updates by watching the [bitnami/containers GitHub repo](https://github.com/bitnami/containers).