Removed subfolder from dockerfile
All checks were successful
Build Mau & Deploy Mau / build (push) Successful in 1m11s
Build Mau & Deploy Mau / deploy (push) Has been skipped
Build Mau & Deploy Mau / build (pull_request) Successful in 1m17s
Build Mau & Deploy Mau / deploy (pull_request) Has been skipped

This commit is contained in:
2024-07-14 15:04:59 +02:00
parent 401e9fbf8a
commit 094b5488a1

View File

@@ -7,10 +7,10 @@ EXPOSE 8081
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["MauMau-Server/MauMau-Server.csproj", "MauMau-Server/"]
RUN dotnet restore "MauMau-Server/MauMau-Server.csproj"
COPY MauMau-Server.csproj .
RUN dotnet restore "MauMau-Server.csproj"
COPY . .
WORKDIR "/src/MauMau-Server"
WORKDIR "/src"
RUN dotnet build "MauMau-Server.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish