File tree 1 file changed +8
-6
lines changed
Rsk.Samples.IdentityServer.AdminUiIntegration
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Stage 1 - Build
2
- FROM --platform=$TARGETPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
2
+ FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
3
+ ARG TARGETARCH
4
+
3
5
WORKDIR /app
4
6
5
7
# packages installed
@@ -8,24 +10,24 @@ RUN apk update && \
8
10
9
11
# Copy csproj and restore as distinct layers
10
12
COPY *.csproj .
11
- RUN dotnet restore
13
+ RUN dotnet restore -a $TARGETARCH
12
14
13
15
# Copy everything else and build
14
16
COPY . .
15
- RUN dotnet publish -c Release -o out
17
+ RUN dotnet publish -a $TARGETARCH -o out
16
18
17
19
# Stage 2 - Runtime
18
- FROM --platform=$TARGETPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS runtime
20
+ FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS runtime
19
21
20
22
# Ensuring latest openssl is installed as the one in base
21
23
# is out of date and vulnerable
22
24
RUN apk update && \
23
25
apk upgrade && \
24
26
apk upgrade openssl
25
27
26
- ENV ASPNETCORE_ENVIRONMENT Production
28
+ ENV ASPNETCORE_ENVIRONMENT= Production
27
29
ENV ASPNETCORE_HTTP_PORT=5003
28
- ENV ASPNETCORE_URLS http://*:5003
30
+ ENV ASPNETCORE_URLS= http://*:5003
29
31
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
30
32
31
33
EXPOSE 5003
You can’t perform that action at this time.
0 commit comments