Skip to content

Commit 98ac0c4

Browse files
authored
Feat(docker): Add curl to docker images for healthchecks (#1703)
1 parent c3a1911 commit 98ac0c4

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

Dockerfile.linux

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
FROM mcr.microsoft.com/dotnet/aspnet:8.0.15 AS runtime
2+
RUN apt update
3+
RUN apt install -y curl
24
COPY out /app
35
VOLUME ["/smtp4dev"]
46
WORKDIR /

Dockerfile.linux.arm64

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
FROM --platform=linux/arm64 mcr.microsoft.com/dotnet/aspnet:8.0.15 AS runtime
2+
RUN apt update
3+
RUN apt install -y curl
24
COPY out /app
35
VOLUME ["/smtp4dev"]
46
WORKDIR /

azure-pipelines.yml

+5-1
Original file line numberDiff line numberDiff 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'])

0 commit comments

Comments
 (0)