You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
684 B

3 years ago
3 years ago
3 years ago
  1. #See to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
  2. FROM AS base
  3. WORKDIR /app
  4. EXPOSE 80
  5. EXPOSE 443
  6. FROM AS publish
  7. COPY ./src/ ./src/
  8. RUN dotnet publish "/src/BirdsiteLive/BirdsiteLive.csproj" -c Release -o /app/publish
  9. RUN dotnet publish "/src/BSLManager/BSLManager.csproj" -r linux-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -c Release -o /app/publish
  10. FROM base AS final
  11. WORKDIR /app
  12. COPY --from=publish /app/publish .
  13. ENTRYPOINT ["dotnet", "BirdsiteLive.dll"]