mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
13 lines
341 B
Docker
13 lines
341 B
Docker
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN dotnet restore SharpbinV3.Server.csproj
|
|
RUN ls /app && false
|
|
RUN dotnet publish SharpbinV3.Server.csproj -c Release -o out
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0
|
|
WORKDIR /app
|
|
COPY --from=build /app/out .
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["dotnet", "SharpbinV3.Server.dll"]
|