Skip to content

Commit

Permalink
only scaffold platform flag for linux containers (#4069)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexyaang authored Sep 13, 2023
1 parent fe5eae7 commit 24b465d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/templates/netCore/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ USER appuser
{{/if}}
{{/if}}
{{/unless}}
{{#if (eq netCorePlatformOS 'Windows')}}
FROM {{ netCoreSdkBaseImage }} AS build
{{else}}
FROM --platform=$BUILDPLATFORM {{ netCoreSdkBaseImage }} AS build
{{/if}}
ARG configuration=Release
WORKDIR /src
COPY ["{{ workspaceRelative . artifact }}", "{{ dirname (workspaceRelative . artifact) }}/"]
Expand Down

0 comments on commit 24b465d

Please sign in to comment.