From 4851f9f3bad2249f039e277fb1d8d3f516e6f943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Thu, 28 Sep 2023 12:23:15 +0200 Subject: [PATCH] Update 'Sources/Dockerfile' --- Sources/Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/Dockerfile b/Sources/Dockerfile index 589d9c0..752dc0b 100644 --- a/Sources/Dockerfile +++ b/Sources/Dockerfile @@ -1,16 +1,16 @@ FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src -COPY . . -RUN dotnet add OpenLibraryWrapper/OpenLibraryWrapper.csproj package Swashbuckle.AspNetCore -v 6.5 -RUN dotnet restore OpenLibraryWrapper/OpenLibraryWrapper.csproj -RUN dotnet build OpenLibraryWrapper/OpenLibraryWrapper.csproj -RUN dotnet publish OpenLibraryWrapper/OpenLibraryWrapper.csproj +COPY ./OpenLibraryWrapper/ . +RUN dotnet add OpenLibraryWrapper.csproj package Swashbuckle.AspNetCore -v 6.5 +RUN dotnet restore OpenLibraryWrapper.csproj +RUN dotnet build OpenLibraryWrapper.csproj +RUN dotnet publish OpenLibraryWrapper.csproj -c Release FROM mcr.microsoft.com/dotnet/aspnet:7.0 WORKDIR /app -COPY --from=build /src . +COPY --from=build /src/ . EXPOSE 80 ENTRYPOINT ["dotnet", "OpenLibraryWrapper.dll"] \ No newline at end of file