新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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/ .
|
||||
Reference in New Issue
Block a user