Added csproj to Dockerfile
This commit is contained in:
@@ -8,13 +8,13 @@ ARG BUILDPLATFORM
|
||||
|
||||
WORKDIR /src
|
||||
COPY *.csproj .
|
||||
RUN dotnet restore -r
|
||||
RUN dotnet restore "MauMau-Server.csproj"
|
||||
COPY . .
|
||||
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
|
||||
RUN dotnet public -c Release -o /app/publish \
|
||||
RUN dotnet public "MauMau-Server.csproj" -c Release -o /app/publish \
|
||||
--self-contained true \
|
||||
/p:PublishTrimmed=true \
|
||||
/p:PublishSingleFile=true \
|
||||
|
||||
Reference in New Issue
Block a user