docker updates

test
dan 2020-10-30 19:35:45 -06:00
parent fef20cbfc9
commit b8f77ecdf2
1 changed files with 3 additions and 3 deletions

View File

@ -29,12 +29,12 @@ RUN dotnet restore
# Copy everything else and build
WORKDIR /app
RUN ls
COPY . ./
WORKDIR /app/OFBButte.Api
RUN dotnet publish -c Release -o out
# Build runtime image
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "aspnetapp.dll 8222"]
COPY --from=build-env /app/OFBButte.Api/out .
ENTRYPOINT ["dotnet", "OFBButte.Api.dll 8222"]