Skip to content

Commit 3dca862

Browse files
committed
Update images for Windows 1809
1 parent e26e975 commit 3dca862

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

docker-compose-windows-1809.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: "3.2"
33
services:
44
vote:
55
image: dockersamples/examplevotingapp_vote:dotnet-nanoserver-1809
6-
build:
6+
build:
77
context: ./vote/dotnet
88
dockerfile: Dockerfile.1809
99
ports:
@@ -13,12 +13,12 @@ services:
1313

1414
result:
1515
image: dockersamples/examplevotingapp_result:dotnet-nanoserver-1809
16-
build:
16+
build:
1717
context: ./result/dotnet
1818
dockerfile: Dockerfile.1809
1919
ports:
2020
- "5001:80"
21-
environment:
21+
environment:
2222
- "ConnectionStrings:ResultData=Server=db;Port=4000;Database=votes;User=root;SslMode=None"
2323
depends_on:
2424
- db
@@ -28,14 +28,14 @@ services:
2828
build:
2929
context: ./worker/dotnet
3030
dockerfile: Dockerfile.1809
31-
environment:
31+
environment:
3232
- "ConnectionStrings:VoteData=Server=db;Port=4000;Database=votes;User=root;SslMode=None"
3333
depends_on:
3434
- message-queue
3535
- db
3636

3737
message-queue:
38-
image: dockersamples/nats:nanoserver-1809
38+
image: nats:2.0.4
3939

4040
db:
4141
image: dockersamples/tidb:nanoserver-1809
@@ -45,4 +45,4 @@ services:
4545
networks:
4646
default:
4747
external:
48-
name: nat
48+
name: nat

result/dotnet/Dockerfile.1809

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM microsoft/dotnet:2.1-sdk-nanoserver-1809 as builder
1+
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 as builder
22

33
WORKDIR /Result
44
COPY Result/Result.csproj .
@@ -8,7 +8,7 @@ COPY /Result .
88
RUN dotnet publish -c Release -o /out Result.csproj
99

1010
# app image
11-
FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-1809
11+
FROM mcr.microsoft.com/dotnet/core/aspnet:2.1
1212

1313
WORKDIR /app
1414
ENTRYPOINT ["dotnet", "Result.dll"]

vote/dotnet/Dockerfile.1809

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM microsoft/dotnet:2.1-sdk-nanoserver-1809 as builder
1+
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 as builder
22

33
WORKDIR /Vote
44
COPY Vote/Vote.csproj .
@@ -8,7 +8,7 @@ COPY /Vote .
88
RUN dotnet publish -c Release -o /out Vote.csproj
99

1010
# app image
11-
FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-1809
11+
FROM mcr.microsoft.com/dotnet/core/aspnet:2.1
1212

1313
WORKDIR /app
1414
ENTRYPOINT ["dotnet", "Vote.dll"]

worker/dotnet/Dockerfile.1809

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM microsoft/dotnet:2.1-sdk-nanoserver-1809 as builder
1+
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 as builder
22

33
WORKDIR /Worker
44
COPY Worker/Worker.csproj .
@@ -8,7 +8,7 @@ COPY /Worker .
88
RUN dotnet publish -c Release -o /out Worker.csproj
99

1010
# app image
11-
FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-1809
11+
FROM mcr.microsoft.com/dotnet/core/runtime:2.1
1212

1313
WORKDIR /app
1414
ENTRYPOINT ["dotnet", "Worker.dll"]

0 commit comments

Comments
 (0)