Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
weibaohui committed Nov 23, 2023
1 parent 0a0b10c commit 9a36457
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BlazorApp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY ["BlazorApp/BlazorApp.csproj", "BlazorApp/"]
RUN dotnet restore "BlazorApp/BlazorApp.csproj"
Expand All @@ -16,7 +16,7 @@ FROM build AS publish
RUN dotnet publish "BlazorApp.csproj" -c Release -o /app/publish


FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS kubectl
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS kubectl
RUN apt-get update && apt-get install -y apt-transport-https curl gnupg \
&& curl https://mirrors.aliyun.com/kubernetes/apt/doc/apt-key.gpg | apt-key add - \
&& echo "deb https://mirrors.aliyun.com/kubernetes/apt/ kubernetes-xenial main" >/etc/apt/sources.list.d/kubernetes.list \
Expand Down

0 comments on commit 9a36457

Please sign in to comment.