BirdsiteLive/Dockerfile

16 lines
684 B
Docker
Raw Normal View History

2020-03-21 05:39:32 +01:00
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
2021-05-29 01:34:41 +02:00
FROM mcr.microsoft.com/dotnet/aspnet:3.1-buster-slim AS base
2020-03-21 05:39:32 +01:00
WORKDIR /app
EXPOSE 80
EXPOSE 443
2021-05-29 01:34:41 +02:00
FROM mcr.microsoft.com/dotnet/sdk:3.1-buster AS publish
2020-12-28 07:36:30 +01:00
COPY ./src/ ./src/
2020-12-28 07:33:09 +01:00
RUN dotnet publish "/src/BirdsiteLive/BirdsiteLive.csproj" -c Release -o /app/publish
2021-04-10 03:07:03 +02:00
RUN dotnet publish "/src/BSLManager/BSLManager.csproj" -r linux-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -c Release -o /app/publish
2020-03-21 05:39:32 +01:00
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "BirdsiteLive.dll"]