File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
FROM mcr.microsoft.com/dotnet/aspnet:8.0.15 AS runtime
2
+ RUN apt update
3
+ RUN apt install -y curl
2
4
COPY out /app
3
5
VOLUME ["/smtp4dev"]
4
6
WORKDIR /
Original file line number Diff line number Diff line change 1
1
FROM --platform=linux/arm64 mcr.microsoft.com/dotnet/aspnet:8.0.15 AS runtime
2
+ RUN apt update
3
+ RUN apt install -y curl
2
4
COPY out /app
3
5
VOLUME ["/smtp4dev"]
4
6
WORKDIR /
Original file line number Diff line number Diff line change @@ -272,12 +272,16 @@ stages:
272
272
zipAfterPublish : false
273
273
modifyOutputPath : false
274
274
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'
275
279
- task : Docker@2
276
280
displayName : Build image
277
281
inputs :
278
282
command : build
279
283
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)"
281
285
- task : Docker@2
282
286
displayName : Push image
283
287
condition : or(variables['isreleasebuild'], variables['iscibuild'])
You can’t perform that action at this time.
0 commit comments