Files
Sharpbin/SharpbinV3.Server/Dockerfile
T

15 lines
320 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY . .
RUN dotnet restore SharpbinV3.Server.csproj
RUN dotnet publish SharpbinV3.Server.csproj -c Release -o /app
FROM mcr.microsoft.com/dotnet/aspnet:10.0
WORKDIR /app
COPY --from=build /app .
EXPOSE 8080
ENTRYPOINT ["dotnet", "SharpbinV3.Server.dll"]