Notes/Dockerfile

13 lines
313 B
Docker
Raw Normal View History

2022-12-01 02:44:56 +00:00
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
COPY . .
RUN dotnet publish "BinaryDad.Notes.csproj" -c Release -o /app/publish /p:UseAppHost=false
2023-06-08 13:45:57 +00:00
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
2022-12-01 02:44:56 +00:00
WORKDIR /app
2023-06-08 13:45:57 +00:00
COPY --from=build /app/publish .
EXPOSE 80
2022-12-01 02:44:56 +00:00
ENTRYPOINT ["dotnet", "BinaryDad.Notes.dll"]