From 66d88916c6be059b1b93cf289688e775eb96282c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Thu, 21 Sep 2023 11:07:42 +0200 Subject: [PATCH] Add 'Sources/Dockerfile' --- Sources/Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Sources/Dockerfile diff --git a/Sources/Dockerfile b/Sources/Dockerfile new file mode 100644 index 0000000..f1a85f4 --- /dev/null +++ b/Sources/Dockerfile @@ -0,0 +1,14 @@ +# syntax=docker/dockerfile:1 + +FROM mcr.microsoft.com/dotnet/sdk:6.0 as build-env +WORKDIR /Sources +COPY Sources/*.csproj . +RUN dotnet restore +COPY Sources . +RUN dotnet publish -c Release -o /publish + +FROM mcr.microsoft.com/dotnet/aspnet:6.0 as runtime +WORKDIR /publish +COPY --from=build-env /publish . +EXPOSE 80 +ENTRYPOINT ["dotnet", "OpenLibraryWrapper.dll"] \ No newline at end of file