You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
458 B
17 lines
458 B
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 OpenLibraryWS_Wrapper.sln
|
|
RUN dotnet build OpenLibraryWS_Wrapper.sln
|
|
RUN dotnet publish OpenLibraryWS_Wrapper.sln
|
|
|
|
#FROM mcr.microsoft.com/dotnet/aspnet:7.0
|
|
WORKDIR /app
|
|
|
|
#COPY --from=build /src .
|
|
COPY /src /app
|
|
|
|
EXPOSE 80
|
|
ENTRYPOINT ["dotnet", "OpenLibraryWrapper.dll"] |