18 lines
508 B
Docker
18 lines
508 B
Docker
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|
WORKDIR /src
|
|
|
|
COPY ChessCubing.Server/ChessCubing.Server.csproj ChessCubing.Server/
|
|
RUN dotnet restore ChessCubing.Server/ChessCubing.Server.csproj
|
|
|
|
COPY ChessCubing.Server/ ChessCubing.Server/
|
|
RUN dotnet publish ChessCubing.Server/ChessCubing.Server.csproj -c Release -o /app/publish
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0
|
|
WORKDIR /app
|
|
|
|
ENV ASPNETCORE_URLS=http://+:8080
|
|
|
|
COPY --from=build /app/publish ./
|
|
|
|
ENTRYPOINT ["dotnet", "ChessCubing.Server.dll"]
|