From 1bf3629ffb0a769285b5d27d5987148fb22fab2b Mon Sep 17 00:00:00 2001 From: ProgramRipper Date: Mon, 9 Feb 2026 20:43:38 +0800 Subject: [PATCH] [Milky] Use alpine as base docker image --- Lagrange.Milky/Resources/Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Lagrange.Milky/Resources/Dockerfile b/Lagrange.Milky/Resources/Dockerfile index f1797b1..42c9b0e 100644 --- a/Lagrange.Milky/Resources/Dockerfile +++ b/Lagrange.Milky/Resources/Dockerfile @@ -11,10 +11,12 @@ COPY --link Lagrange.Proto.Generator/*.csproj Lagrange.Proto.Generator/ RUN dotnet restore Lagrange.Milky COPY --link . . -RUN dotnet publish Lagrange.Milky -c Release -p:DebugType=none -p:StaticExecutable=true -o /app/bin +RUN dotnet publish Lagrange.Milky -c Release -p:DebugType=none -o /app/bin -FROM scratch +FROM alpine -COPY --from=build /app/bin/ . -ENTRYPOINT ["./Lagrange.Milky"] +WORKDIR /root + +COPY --from=build /app/bin/ /usr/local/bin/ +CMD ["Lagrange.Milky"]