File tree Expand file tree Collapse file tree 4 files changed +16
-12
lines changed
samples/KubernetesIngress.Sample Expand file tree Collapse file tree 4 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 1
1
# See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
2
2
3
- FROM mcr.microsoft.com/dotnet/aspnet:6 .0 AS base
3
+ FROM mcr.microsoft.com/dotnet/aspnet:8 .0 AS base
4
4
WORKDIR /app
5
5
EXPOSE 80
6
6
EXPOSE 443
7
7
8
- FROM amd64/buildpack-deps:jammy-curl AS publish
8
+ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS publish
9
9
WORKDIR /src
10
+ # We need to install the SDK manually because we might target an unreleased SDK
10
11
COPY ["global.json" , "" ]
11
12
RUN curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --jsonfile global.json
12
13
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT 1
@@ -28,7 +29,7 @@ WORKDIR /src
28
29
COPY . .
29
30
30
31
WORKDIR /src/samples/KubernetesIngress.Sample/Combined/
31
- RUN /root/.dotnet/dotnet publish -c Release --no-restore -o /app/publish -f net6 .0
32
+ RUN /root/.dotnet/dotnet publish -c Release --no-restore -o /app/publish -f net8 .0
32
33
33
34
FROM base AS final
34
35
WORKDIR /app
Original file line number Diff line number Diff line change 1
1
# See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
2
2
3
- FROM mcr.microsoft.com/dotnet/aspnet:6 .0 AS base
3
+ FROM mcr.microsoft.com/dotnet/aspnet:8 .0 AS base
4
4
WORKDIR /app
5
5
EXPOSE 80
6
6
EXPOSE 443
7
7
8
- FROM amd64/buildpack-deps:jammy-curl AS publish
8
+ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS publish
9
9
WORKDIR /src
10
+ # We need to install the SDK manually because we might target an unreleased SDK
10
11
COPY ["global.json" , "" ]
11
12
RUN curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --jsonfile global.json
12
13
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT 1
@@ -28,7 +29,7 @@ WORKDIR /src
28
29
COPY . .
29
30
30
31
WORKDIR /src/samples/KubernetesIngress.Sample/Ingress/
31
- RUN /root/.dotnet/dotnet publish -c Release --no-restore -o /app/publish -f net6 .0
32
+ RUN /root/.dotnet/dotnet publish -c Release --no-restore -o /app/publish -f net8 .0
32
33
33
34
FROM base AS final
34
35
WORKDIR /app
Original file line number Diff line number Diff line change 1
1
# See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
2
2
3
- FROM mcr.microsoft.com/dotnet/aspnet:6 .0 AS base
3
+ FROM mcr.microsoft.com/dotnet/aspnet:8 .0 AS base
4
4
WORKDIR /app
5
5
EXPOSE 80
6
6
EXPOSE 443
7
7
8
- FROM amd64/buildpack-deps:jammy-curl AS publish
8
+ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS publish
9
9
WORKDIR /src
10
+ # We need to install the SDK manually because we might target an unreleased SDK
10
11
COPY ["global.json" , "" ]
11
12
RUN curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --jsonfile global.json
12
13
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT 1
@@ -28,7 +29,7 @@ WORKDIR /src
28
29
COPY . .
29
30
30
31
WORKDIR /src/samples/KubernetesIngress.Sample/Monitor/
31
- RUN /root/.dotnet/dotnet publish -c Release --no-restore -o /app/publish -f net6 .0
32
+ RUN /root/.dotnet/dotnet publish -c Release --no-restore -o /app/publish -f net8 .0
32
33
33
34
FROM base AS final
34
35
WORKDIR /app
Original file line number Diff line number Diff line change 1
1
# See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
2
2
3
- FROM mcr.microsoft.com/dotnet/aspnet:6 .0 AS base
3
+ FROM mcr.microsoft.com/dotnet/aspnet:8 .0 AS base
4
4
WORKDIR /app
5
5
EXPOSE 80
6
6
EXPOSE 443
7
7
8
- FROM amd64/buildpack-deps:jammy-curl AS publish
8
+ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS publish
9
9
WORKDIR /src
10
+ # We need to install the SDK manually because we might target an unreleased SDK
10
11
COPY ["global.json" , "" ]
11
12
RUN curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --jsonfile global.json
12
13
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT 1
13
14
14
15
COPY ["samples/KubernetesIngress.Sample/backend" , "backend" ]
15
16
16
17
WORKDIR /src/backend
17
- RUN /root/.dotnet/dotnet publish -c Release -o /app/publish -f net6 .0
18
+ RUN /root/.dotnet/dotnet publish -c Release -o /app/publish -f net8 .0
18
19
19
20
FROM base AS final
20
21
WORKDIR /app
You can’t perform that action at this time.
0 commit comments