diff --git a/resources/templates/netCore/Dockerfile.template b/resources/templates/netCore/Dockerfile.template index c85ff575..5d6d3a23 100644 --- a/resources/templates/netCore/Dockerfile.template +++ b/resources/templates/netCore/Dockerfile.template @@ -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) }}/"]