tytd-email-server/Dockerfile

13 lines
365 B
Docker
Raw Normal View History

2023-01-12 12:08:43 +00:00
FROM mcr.microsoft.com/dotnet/sdk:6.0-focal AS build
WORKDIR /source
COPY . .
RUN dotnet restore "./tytdemail.csproj" --disable-parallel
RUN dotnet publish "./tytdemail.csproj" -c release -o /app --no-restore
FROM mcr.microsoft.com/dotnet/aspnet:6.0-focal
WORKDIR /app
COPY --from=build /app ./
2023-01-12 12:36:26 +00:00
WORKDIR /config
2023-01-12 12:34:29 +00:00
EXPOSE 80
2023-01-12 12:08:43 +00:00
2023-01-12 12:36:26 +00:00
ENTRYPOINT ["dotnet","/app/tytdemail.dll"]