Skip to content

Commit ec65750

Browse files
committed
Change to linux-musl-x64
1 parent 7588a8a commit ec65750

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

frameworks/CSharp/wiredio/wiredio-plt.dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
2-
RUN apt-get update && apt-get install -y --no-install-recommends clang lld zlib1g-dev && rm -rf /var/lib/apt/lists/*
1+
# Build
2+
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build
3+
RUN apk add --no-cache clang build-base zlib-dev linux-headers
34
WORKDIR /src
45
COPY src/Platform/ ./Platform/
56
WORKDIR /src/Platform
67
RUN dotnet publish -c Release \
7-
-r linux-x64 \
8+
-r linux-musl-x64 \
89
--self-contained true \
910
-p:PublishAot=true \
1011
-p:OptimizationPreference=Speed \
1112
-p:GarbageCollectionAdaptationMode=0 \
1213
-o /app/out
1314

14-
FROM mcr.microsoft.com/dotnet/runtime-deps:9.0
15+
# Runtime (musl)
16+
FROM mcr.microsoft.com/dotnet/runtime-deps:9.0-alpine
1517
ENV URLS=http://+:8080
1618
WORKDIR /app
1719
COPY --from=build /app/out ./
1820
RUN chmod +x ./Platform
1921
EXPOSE 8080
2022
ENTRYPOINT ["./Platform"]
21-

frameworks/CSharp/wiredio/wiredio.dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
2-
RUN apt-get update && apt-get install -y --no-install-recommends clang lld zlib1g-dev && rm -rf /var/lib/apt/lists/*
1+
# Build
2+
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build
3+
RUN apk add --no-cache clang build-base zlib-dev linux-headers
34
WORKDIR /src
45
COPY src/Fullstack/ ./Fullstack/
56
WORKDIR /src/Fullstack
67
RUN dotnet publish -c Release \
7-
-r linux-x64 \
8+
-r linux-musl-x64 \
89
--self-contained true \
910
-p:PublishAot=true \
1011
-p:OptimizationPreference=Speed \
1112
-p:GarbageCollectionAdaptationMode=0 \
1213
-o /app/out
1314

14-
FROM mcr.microsoft.com/dotnet/runtime-deps:9.0
15+
# Runtime (musl)
16+
FROM mcr.microsoft.com/dotnet/runtime-deps:9.0-alpine
1517
ENV URLS=http://+:8080
1618
WORKDIR /app
1719
COPY --from=build /app/out ./

0 commit comments

Comments
 (0)