Skip to content

Commit 3778d9f

Browse files
committed
Use Alpine for Docker image
1 parent fb0cfdc commit 3778d9f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
1+
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build
22

3-
RUN apt-get update && \
4-
apt-get install -y clang zlib1g-dev
3+
RUN apk add clang build-base zlib-dev
54

65
WORKDIR /app
76

87
COPY . .
98

109
RUN dotnet publish src/Core -c Release -o /build
1110

12-
FROM mcr.microsoft.com/dotnet/runtime-deps:9.0
11+
FROM mcr.microsoft.com/dotnet/runtime-deps:9.0-alpine
1312

1413
WORKDIR /app
1514

0 commit comments

Comments
 (0)