Notes/Dockerfile

14 lines
331 B
Docker
Raw Normal View History

2023-11-15 16:07:03 +00:00
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
2022-12-01 02:44:56 +00:00
WORKDIR /src
COPY . .
RUN dotnet publish "BinaryDad.Notes.csproj" -c Release -o /app/publish /p:UseAppHost=false
2023-11-15 16:07:03 +00:00
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
2022-12-01 02:44:56 +00:00
WORKDIR /app
2024-01-08 22:17:38 +00:00
RUN mkdir notes
2023-06-08 13:45:57 +00:00
COPY --from=build /app/publish .
EXPOSE 8080
2023-06-08 13:45:57 +00:00
2022-12-01 02:44:56 +00:00
ENTRYPOINT ["dotnet", "BinaryDad.Notes.dll"]