Added csproj to Dockerfile
Some checks failed
Build Mau & Deploy Mau / build (push) Successful in 1m15s
Build Mau & Deploy Mau / deploy (push) Failing after 2m10s

This commit is contained in:
DTieman
2024-04-14 13:08:33 +02:00
parent ff0a53fc9a
commit db500d7476

View File

@@ -8,13 +8,13 @@ ARG BUILDPLATFORM
WORKDIR /src WORKDIR /src
COPY *.csproj . COPY *.csproj .
RUN dotnet restore -r RUN dotnet restore "MauMau-Server.csproj"
COPY . . COPY . .
WORKDIR "/src" WORKDIR "/src"
RUN dotnet build -c Release -o /app/build -a $TARGETARCH RUN dotnet build "MauMau-Server.csproj" -c Release -o /app/build -a $TARGETARCH
FROM build AS publish FROM build AS publish
RUN dotnet public -c Release -o /app/publish \ RUN dotnet public "MauMau-Server.csproj" -c Release -o /app/publish \
--self-contained true \ --self-contained true \
/p:PublishTrimmed=true \ /p:PublishTrimmed=true \
/p:PublishSingleFile=true \ /p:PublishSingleFile=true \