We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff17122 commit 8cfed8bCopy full SHA for 8cfed8b
1 file changed
Dockerfile
@@ -1,4 +1,5 @@
1
-FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-preview AS build
+FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:7.0 AS build
2
+ARG TARGETARCH
3
WORKDIR /app
4
5
RUN mkdir -p src/UnityNuGet && mkdir -p src/UnityNuGet.Server && mkdir -p src/UnityNuGet.Tests
@@ -7,10 +8,10 @@ COPY src/*.sln src
7
8
COPY src/UnityNuGet/*.csproj src/UnityNuGet
9
COPY src/UnityNuGet.Server/*.csproj src/UnityNuGet.Server
10
COPY src/UnityNuGet.Tests/*.csproj src/UnityNuGet.Tests
-RUN dotnet restore src
11
+RUN dotnet restore src -a $TARGETARCH
12
13
COPY . ./
-RUN dotnet publish src -c Release -o /app/src/out
14
+RUN dotnet publish src -a $TARGETARCH -c Release -o /app/src/out
15
16
# Build runtime image
17
FROM mcr.microsoft.com/dotnet/aspnet:7.0
0 commit comments