kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch17/docker-images/kube-explorer/Dockerfile

16 lines
337 B
Docker
Raw Normal View History

FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS builder
WORKDIR /src
COPY src/KubeExplorer.csproj .
RUN dotnet restore
COPY src/ .
RUN dotnet publish -c Release -o /out KubeExplorer.csproj
# app image
FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine
WORKDIR /app
ENTRYPOINT ["dotnet", "KubeExplorer.dll"]
COPY --from=builder /out/ .