From f74812727ccb57902257d472b3de78cd0a8de5fb Mon Sep 17 00:00:00 2001 From: David Claeys Date: Wed, 9 Apr 2025 13:06:56 +0200 Subject: [PATCH] updates to newer version --- Dockerfile | 7 +++---- README.md | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index b81e79b..2d39a51 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ ARG CERT_PASSWORD -ARG DOTNET_SDK_VERSION=9.0.202 -ARG DOTNET_RUNTIME_VERSION=9.0.3 +ARG DOTNET_SDK_VERSION=9.0.203 +ARG DOTNET_RUNTIME_VERSION=9.0.4 ARG ALPINE_VERSION=3.21 ARG CONFIG_DIRECTORY_ARG=/config FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_SDK_VERSION}-alpine${ALPINE_VERSION}-amd64 AS build-env @@ -32,8 +32,7 @@ RUN apk update \ && mkdir -p $CERTIFICATES_DIRECTORY \ && mkdir -p $CONFIG_DIRECTORY COPY --from=build-env $CONFIG_DIRECTORY $CONFIG_DIRECTORY -RUN CERT_PASSWORD=$(cat $CERT_PASSWORD_FILE) \ - && cp $CONFIG_DIRECTORY/aspnetapp.pem $ASPNETCORE_Kestrel__Certificates__Default__Path \ +RUN cp $CONFIG_DIRECTORY/aspnetapp.pem $ASPNETCORE_Kestrel__Certificates__Default__Path \ && cp $CONFIG_DIRECTORY/aspnetapp.key $ASPNETCORE_Kestrel__Certificates__Default__KeyPath \ && rm -rf $CONFIG_DIRECTORY \ && chmod 755 $ASPNETCORE_Kestrel__Certificates__Default__Path \ diff --git a/README.md b/README.md index 7c62802..c015ced 100644 --- a/README.md +++ b/README.md @@ -66,8 +66,8 @@ docker build --build-arg CERT_PASSWORD=supersecretpassword . -t net-base | Argument | Description | Default | |-----------------------------------------------------|-------------------------------------------------------------------------|----------------------------------------------------------------------------------------------| | CERT_PASSWORD | The password for the generated certificate | N/A **(required)** | -| DOTNET_SDK_VERSION | The [SDK](https://mcr.microsoft.com/en-us/artifact/mar/dotnet/sdk/tags) version used to generate the development certificate | 9.0.202 | -| DOTNET_RUNTIME_VERSION | The [runtime](https://mcr.microsoft.com/en-us/artifact/mar/dotnet/aspnet/tags) version used as a base | 9.0.3 | +| DOTNET_SDK_VERSION | The [SDK](https://mcr.microsoft.com/en-us/artifact/mar/dotnet/sdk/tags) version used to generate the development certificate | 9.0.203 | +| DOTNET_RUNTIME_VERSION | The [runtime](https://mcr.microsoft.com/en-us/artifact/mar/dotnet/aspnet/tags) version used as a base | 9.0.4 | | ALPINE_VERSION | The version of [alpine linux](https://www.alpinelinux.org/) used as a base
Currently you can choose between `3.20` or `3.21` | 3.21 | ## Security implications