docker updates
parent
fef20cbfc9
commit
b8f77ecdf2
|
|
@ -29,12 +29,12 @@ RUN dotnet restore
|
||||||
|
|
||||||
# Copy everything else and build
|
# Copy everything else and build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN ls
|
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
WORKDIR /app/OFBButte.Api
|
||||||
RUN dotnet publish -c Release -o out
|
RUN dotnet publish -c Release -o out
|
||||||
|
|
||||||
# Build runtime image
|
# Build runtime image
|
||||||
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2
|
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build-env /app/out .
|
COPY --from=build-env /app/OFBButte.Api/out .
|
||||||
ENTRYPOINT ["dotnet", "aspnetapp.dll 8222"]
|
ENTRYPOINT ["dotnet", "OFBButte.Api.dll 8222"]
|
||||||
Loading…
Reference in New Issue