Update dockerfile with new fsproj

This commit is contained in:
Joseph Ferano 2022-01-24 04:23:14 +07:00
parent 48e726b3fa
commit 7585ae26b2

View File

@ -8,16 +8,16 @@ COPY . .
RUN dotnet tool restore
RUN dotnet restore "PlayerInteractions/PlayerInteractions.fsproj"
RUN dotnet restore "Bot/Bot.fsproj"
WORKDIR "/src/PlayerInteractions"
WORKDIR "/src/Bot"
RUN dotnet build "PlayerInteractions.fsproj" -c Release -o /app/build
RUN dotnet build "Bot.fsproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "PlayerInteractions.fsproj" -c Release -o /app/publish
RUN dotnet publish "Bot.fsproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT "./PlayerInteractions"
ENTRYPOINT "./Bot"