File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 11FROM mcr.microsoft.com/dotnet/aspnet:8.0.15 AS runtime
2+ RUN apt update
3+ RUN apt install -y curl
24COPY out /app
35VOLUME ["/smtp4dev"]
46WORKDIR /
Original file line number Diff line number Diff line change 11FROM --platform=linux/arm64 mcr.microsoft.com/dotnet/aspnet:8.0.15 AS runtime
2+ RUN apt update
3+ RUN apt install -y curl
24COPY out /app
35VOLUME ["/smtp4dev"]
46WORKDIR /
Original file line number Diff line number Diff line change @@ -272,12 +272,16 @@ stages:
272272 zipAfterPublish : false
273273 modifyOutputPath : false
274274 arguments : ' -c Release -p:version=$(tag) -o out'
275+ - task : CmdLine@2
276+ displayName : ' Install emulator'
277+ inputs :
278+ script : ' sudo apt-get update && sudo apt-get install -y qemu qemu-user-static'
275279 - task : Docker@2
276280 displayName : Build image
277281 inputs :
278282 command : build
279283 dockerfile : " **/Dockerfile.linux.arm64"
280- arguments : " --build-arg version=$(tag) -t $(docker_repo):linux-arm64-$(tag)"
284+ arguments : " --platform linux/arm64 -- build-arg version=$(tag) -t $(docker_repo):linux-arm64-$(tag)"
281285 - task : Docker@2
282286 displayName : Push image
283287 condition : or(variables['isreleasebuild'], variables['iscibuild'])
You can’t perform that action at this time.
0 commit comments