File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ version: "3.2"
3
3
services :
4
4
vote :
5
5
image : dockersamples/examplevotingapp_vote:dotnet-nanoserver-1809
6
- build :
6
+ build :
7
7
context : ./vote/dotnet
8
8
dockerfile : Dockerfile.1809
9
9
ports :
@@ -13,12 +13,12 @@ services:
13
13
14
14
result :
15
15
image : dockersamples/examplevotingapp_result:dotnet-nanoserver-1809
16
- build :
16
+ build :
17
17
context : ./result/dotnet
18
18
dockerfile : Dockerfile.1809
19
19
ports :
20
20
- " 5001:80"
21
- environment :
21
+ environment :
22
22
- " ConnectionStrings:ResultData=Server=db;Port=4000;Database=votes;User=root;SslMode=None"
23
23
depends_on :
24
24
- db
@@ -28,14 +28,14 @@ services:
28
28
build :
29
29
context : ./worker/dotnet
30
30
dockerfile : Dockerfile.1809
31
- environment :
31
+ environment :
32
32
- " ConnectionStrings:VoteData=Server=db;Port=4000;Database=votes;User=root;SslMode=None"
33
33
depends_on :
34
34
- message-queue
35
35
- db
36
36
37
37
message-queue :
38
- image : dockersamples/ nats:nanoserver-1809
38
+ image : nats:2.0.4
39
39
40
40
db :
41
41
image : dockersamples/tidb:nanoserver-1809
@@ -45,4 +45,4 @@ services:
45
45
networks :
46
46
default :
47
47
external :
48
- name : nat
48
+ name : nat
Original file line number Diff line number Diff line change 1
- FROM microsoft/dotnet:2.1-sdk-nanoserver-1809 as builder
1
+ FROM mcr. microsoft.com /dotnet/core/sdk :2.1 as builder
2
2
3
3
WORKDIR /Result
4
4
COPY Result/Result.csproj .
@@ -8,7 +8,7 @@ COPY /Result .
8
8
RUN dotnet publish -c Release -o /out Result.csproj
9
9
10
10
# app image
11
- FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-1809
11
+ FROM mcr. microsoft.com /dotnet/core/aspnet :2.1
12
12
13
13
WORKDIR /app
14
14
ENTRYPOINT ["dotnet", "Result.dll"]
Original file line number Diff line number Diff line change 1
- FROM microsoft/dotnet:2.1-sdk-nanoserver-1809 as builder
1
+ FROM mcr. microsoft.com /dotnet/core/sdk :2.1 as builder
2
2
3
3
WORKDIR /Vote
4
4
COPY Vote/Vote.csproj .
@@ -8,7 +8,7 @@ COPY /Vote .
8
8
RUN dotnet publish -c Release -o /out Vote.csproj
9
9
10
10
# app image
11
- FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-1809
11
+ FROM mcr. microsoft.com /dotnet/core/aspnet :2.1
12
12
13
13
WORKDIR /app
14
14
ENTRYPOINT ["dotnet", "Vote.dll"]
Original file line number Diff line number Diff line change 1
- FROM microsoft/dotnet:2.1-sdk-nanoserver-1809 as builder
1
+ FROM mcr. microsoft.com /dotnet/core/sdk :2.1 as builder
2
2
3
3
WORKDIR /Worker
4
4
COPY Worker/Worker.csproj .
@@ -8,7 +8,7 @@ COPY /Worker .
8
8
RUN dotnet publish -c Release -o /out Worker.csproj
9
9
10
10
# app image
11
- FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-1809
11
+ FROM mcr. microsoft.com /dotnet/core/runtime :2.1
12
12
13
13
WORKDIR /app
14
14
ENTRYPOINT ["dotnet", "Worker.dll"]
You can’t perform that action at this time.
0 commit comments