File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1- FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
1+ FROM mcr.microsoft.com/dotnet/sdk:8.0-windowsservercore-ltsc2022 AS build-env
22WORKDIR /app
33COPY . ./
44RUN dotnet publish asp_frontend_service/*.csproj -c Release -o out
55
6- FROM mcr.microsoft.com/dotnet/aspnet:8.0
6+ FROM mcr.microsoft.com/dotnet/aspnet:8.0-windowsservercore-ltsc2022
77WORKDIR /app
88EXPOSE 8080
99COPY --from=build-env /app/out .
Original file line number Diff line number Diff line change 1- FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
1+ FROM mcr.microsoft.com/dotnet/sdk:8.0-windowsservercore-ltsc2022 AS build-env
22WORKDIR /app
33COPY . ./
44RUN dotnet publish asp_remote_service/*.csproj -c Release -o out
55
6- FROM mcr.microsoft.com/dotnet/aspnet:8.0
6+ FROM mcr.microsoft.com/dotnet/aspnet:8.0-windowsservercore-ltsc2022
77WORKDIR /app
88ENV ASPNETCORE_URLS=http://+:8081
99EXPOSE 8081
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ version: '3'
44services :
55 asp_frontend_service :
66 image : dotnetsampleapp/frontend-service
7+ dns :
8+ - " 8.8.8.8"
9+ - " 8.8.6.6"
710 build :
811 context : .
912 dockerfile : asp_frontend_service/Dockerfile
@@ -14,6 +17,9 @@ services:
1417
1518 asp_remote_service :
1619 image : dotnetsampleapp/remote-service
20+ dns :
21+ - " 8.8.8.8"
22+ - " 8.8.6.6"
1723 build :
1824 context : .
1925 dockerfile : asp_remote_service/Dockerfile
You can’t perform that action at this time.
0 commit comments