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