Skip to content

Commit b5e7b12

Browse files
committed
fix: using wrong variable for docker build, switched to TARGETPLATFORM instead of BUILDPLATFORM
1 parent 5208589 commit b5e7b12

File tree

1 file changed

+2
-2
lines changed
  • Rsk.Samples.IdentityServer.AdminUiIntegration

1 file changed

+2
-2
lines changed

Rsk.Samples.IdentityServer.AdminUiIntegration/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Stage 1 - Build
2-
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
2+
FROM --platform=$TARGETPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
33
WORKDIR /app
44

55
# packages installed
@@ -15,7 +15,7 @@ COPY . .
1515
RUN dotnet publish -c Release -o out
1616

1717
# Stage 2 - Runtime
18-
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS runtime
18+
FROM --platform=$TARGETPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS runtime
1919

2020
# Ensuring latest openssl is installed as the one in base
2121
# is out of date and vulnerable

0 commit comments

Comments
 (0)