21 lines
524 B
Docker
21 lines
524 B
Docker
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
|
|
WORKDIR /app
|
|
EXPOSE 5000
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
|
WORKDIR /src
|
|
RUN ls
|
|
RUN ls ./
|
|
COPY ["MauMau-Server.csproj", "./"]
|
|
RUN dotnet restore "MauMau-Server.csproj"
|
|
COPY . .
|
|
WORKDIR "/src"
|
|
RUN dotnet build "MauMau-Server.csproj" -c Release -o /app/build
|
|
|
|
FROM build AS publish
|
|
RUN dotnet publish "MauMau-Server.csproj" -c Release -o /app/publish
|
|
|
|
FROM base AS final
|
|
WORKDIR /app
|
|
COPY --from=publish /app/publish .
|
|
ENTRYPOINT ["dotnet", "MauMau-Server.dll"] |