only scaffold platform flag for linux containers (#4069)
This commit is contained in:
Родитель
fe5eae7868
Коммит
24b465d920
|
@ -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) }}/"]
|
||||
|
|
Загрузка…
Ссылка в новой задаче