We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eabe11 commit 5f34907Copy full SHA for 5f34907
Dockerfile
@@ -16,8 +16,13 @@ ENV AZURE_CONFIG_DIR=/app/.azure
16
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS publish
17
WORKDIR /src
18
COPY . .
19
-RUN dotnet publish "AzureCliCredentialProxy.csproj" -c Release -r linux-musl-x64 -o /app/publish
20
+ARG TARGETPLATFORM
21
+RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
22
+ dotnet publish "AzureCliCredentialProxy.csproj" -c Release -r linux-musl-x64 -o /app/publish; \
23
+ else \
24
+ dotnet publish "AzureCliCredentialProxy.csproj" -c Release -r linux-musl-arm64 -o /app/publish; \
25
+ fi
26
27
FROM base AS final
28
RUN chown -R app /app
0 commit comments