mh_lcmk_sms_service/APT.MicroApi/APT.LG.WebApi/Dockerfile.original

16 lines
365 B
Docker
Raw Permalink Normal View History

2024-07-12 16:37:09 +08:00
FROM microsoft/aspnetcore-build:latest AS build-env
WORKDIR /app
# copy csproj and restore as distinct layers
COPY *.csproj ./
RUN dotnet restore
# copy everything else and build
COPY . ./
RUN dotnet publish -c Release -o out
# build runtime image
FROM microsoft/dotnet:latest
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "APT.WebApi.dll"]