From 4ff722c2129466c99da2565ad719d16ea7f43891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Thu, 28 Sep 2023 12:27:10 +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 752dc0b..d0b5193 100644 --- a/Sources/Dockerfile +++ b/Sources/Dockerfile @@ -1,16 +1,16 @@ FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src -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 +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 -c Release -o /src/publish FROM mcr.microsoft.com/dotnet/aspnet:7.0 WORKDIR /app -COPY --from=build /src/ . +COPY --from=build /src/publish . EXPOSE 80 ENTRYPOINT ["dotnet", "OpenLibraryWrapper.dll"] \ No newline at end of file