Skip to content

Commit 1bf3629

Browse files
committed
[Milky] Use alpine as base docker image
1 parent 4225a5f commit 1bf3629

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Lagrange.Milky/Resources/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ COPY --link Lagrange.Proto.Generator/*.csproj Lagrange.Proto.Generator/
1111
RUN dotnet restore Lagrange.Milky
1212

1313
COPY --link . .
14-
RUN dotnet publish Lagrange.Milky -c Release -p:DebugType=none -p:StaticExecutable=true -o /app/bin
14+
RUN dotnet publish Lagrange.Milky -c Release -p:DebugType=none -o /app/bin
1515

1616

17-
FROM scratch
17+
FROM alpine
1818

19-
COPY --from=build /app/bin/ .
20-
ENTRYPOINT ["./Lagrange.Milky"]
19+
WORKDIR /root
20+
21+
COPY --from=build /app/bin/ /usr/local/bin/
22+
CMD ["Lagrange.Milky"]

0 commit comments

Comments
 (0)