Skip to content

Commit dea5af7

Browse files
author
xyzjesper
committed
Try tp fix Build
1 parent 60ae7ae commit dea5af7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

DisBot-Helper-Bot/Dockerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,18 @@ COPY ["DisBot-Helper-Bot/DisBot-Helper-Bot.csproj", "DisBot-Helper-Bot/"]
88
RUN dotnet restore "DisBot-Helper-Bot/DisBot-Helper-Bot.csproj"
99
COPY . .
1010
WORKDIR "/src/DisBot-Helper-Bot"
11-
RUN dotnet publish "./DisBot-Helper-Bot.csproj" -c $BUILD_CONFIGURATION -r linux-x64 --self-contained true -p:PublishReadyToRun=true -p:PublishSingleFile=true -o /app/publish /p:UseAppHost=false
11+
RUN dotnet publish "./DisBot-Helper-Bot.csproj" -c Release -r linux-x64 \
12+
--self-contained true \
13+
-p:PublishReadyToRun=true \
14+
-p:PublishSingleFile=true \
15+
-o /app/publish
1216
FROM build AS publish
1317
ARG BUILD_CONFIGURATION=Release
14-
RUN dotnet publish "./DisBot-Helper-Bot.csproj" -c $BUILD_CONFIGURATION -r linux-x64 --self-contained true -p:PublishReadyToRun=true -p:PublishSingleFile=true -o /app/publish /p:UseAppHost=false
18+
RUN dotnet publish "./DisBot-Helper-Bot.csproj" -c Release -r linux-x64 \
19+
--self-contained true \
20+
-p:PublishReadyToRun=true \
21+
-p:PublishSingleFile=true \
22+
-o /app/publish
1523
FROM base AS final
1624
WORKDIR /app
1725
COPY --from=publish /app/publish .

0 commit comments

Comments
 (0)