Skip to content

Commit 5499747

Browse files
authored
Pin specific SDK and runtime versions in Dockerfile (#121)
1 parent a1d132c commit 5499747

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

source/AAS.TwinEngine.DataEngine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/sdk@sha256:dc8430e6024d454edadad1e160e1973be3cabbb7125998ef190d9e5c6adf7dbb AS build
1+
FROM mcr.microsoft.com/dotnet/sdk:10.0@sha256:c0790639332692a0d56cdd81ed581cfd24d040d9839764c138994866df89a3b6 AS build
22
# Install CycloneDX SBOM Generator Package
33
RUN dotnet tool install --global CycloneDX --version 5.5.0
44
ENV PATH="$PATH:/root/.dotnet/tools"
@@ -19,7 +19,7 @@ FROM scratch AS app-sbom-artifact
1919
COPY --from=build /App/sbom/bom.xml /sbom_application.cyclonedx.xml
2020

2121
# Create final image containing application
22-
FROM mcr.microsoft.com/dotnet/aspnet@sha256:9b5222b0ff8e9eb991a7c1a64b25f0f771d21ccc05dfa1c834f5668ffd9cd73f
22+
FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine@sha256:1e37a8236c558ae31bd6bc8144e38e6036b73cf1b0616fe56d79e60babb9d93b
2323
USER app
2424
WORKDIR /App
2525
COPY --from=build /App/out .

source/AAS.TwinEngine.Plugin.TestPlugin/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/sdk@sha256:dc8430e6024d454edadad1e160e1973be3cabbb7125998ef190d9e5c6adf7dbb AS build
1+
FROM mcr.microsoft.com/dotnet/sdk:10.0@sha256:c0790639332692a0d56cdd81ed581cfd24d040d9839764c138994866df89a3b6 AS build
22
ARG BUILD_CONFIGURATION=Release
33
WORKDIR /App
44
COPY ["AAS.TwinEngine.Plugin.TestPlugin/", "AAS.TwinEngine.Plugin.TestPlugin/"]
@@ -8,7 +8,7 @@ RUN dotnet publish "AAS.TwinEngine.Plugin.TestPlugin/AAS.TwinEngine.Plugin.TestP
88
-o out \
99
--no-restore
1010

11-
FROM mcr.microsoft.com/dotnet/aspnet@sha256:9b5222b0ff8e9eb991a7c1a64b25f0f771d21ccc05dfa1c834f5668ffd9cd73f
11+
FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine@sha256:1e37a8236c558ae31bd6bc8144e38e6036b73cf1b0616fe56d79e60babb9d93b
1212
WORKDIR /App
1313

1414
ENV DATA_DIR=/App/Data

0 commit comments

Comments
 (0)