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