diff --git a/Dockerfile b/Dockerfile index 7aeef06..91bb842 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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