Skip to content

Commit 95d66cf

Browse files
committed
Build Windows Docker Image
1 parent 394b42c commit 95d66cf

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

sample-apps/dotnet/asp_frontend_service/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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
22
WORKDIR /app
33
COPY . ./
44
RUN 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
77
WORKDIR /app
88
EXPOSE 8080
99
COPY --from=build-env /app/out .

sample-apps/dotnet/asp_remote_service/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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
22
WORKDIR /app
33
COPY . ./
44
RUN 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
77
WORKDIR /app
88
ENV ASPNETCORE_URLS=http://+:8081
99
EXPOSE 8081

sample-apps/dotnet/docker-compose.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ version: '3'
44
services:
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

0 commit comments

Comments
 (0)