Added csproj to Dockerfile
This commit is contained in:
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user