Update images for Windows 1809

This commit is contained in:
Elton Stoneman
2019-08-29 07:33:43 -06:00
parent e26e9759a4
commit 3dca8620e5
4 changed files with 12 additions and 12 deletions

View File

@@ -3,7 +3,7 @@ version: "3.2"
services:
vote:
image: dockersamples/examplevotingapp_vote:dotnet-nanoserver-1809
build:
build:
context: ./vote/dotnet
dockerfile: Dockerfile.1809
ports:
@@ -13,12 +13,12 @@ services:
result:
image: dockersamples/examplevotingapp_result:dotnet-nanoserver-1809
build:
build:
context: ./result/dotnet
dockerfile: Dockerfile.1809
ports:
- "5001:80"
environment:
environment:
- "ConnectionStrings:ResultData=Server=db;Port=4000;Database=votes;User=root;SslMode=None"
depends_on:
- db
@@ -28,14 +28,14 @@ services:
build:
context: ./worker/dotnet
dockerfile: Dockerfile.1809
environment:
environment:
- "ConnectionStrings:VoteData=Server=db;Port=4000;Database=votes;User=root;SslMode=None"
depends_on:
- message-queue
- db
message-queue:
image: dockersamples/nats:nanoserver-1809
image: nats:2.0.4
db:
image: dockersamples/tidb:nanoserver-1809
@@ -45,4 +45,4 @@ services:
networks:
default:
external:
name: nat
name: nat

View File

@@ -1,4 +1,4 @@
FROM microsoft/dotnet:2.1-sdk-nanoserver-1809 as builder
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 as builder
WORKDIR /Result
COPY Result/Result.csproj .
@@ -8,7 +8,7 @@ COPY /Result .
RUN dotnet publish -c Release -o /out Result.csproj
# app image
FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-1809
FROM mcr.microsoft.com/dotnet/core/aspnet:2.1
WORKDIR /app
ENTRYPOINT ["dotnet", "Result.dll"]

View File

@@ -1,4 +1,4 @@
FROM microsoft/dotnet:2.1-sdk-nanoserver-1809 as builder
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 as builder
WORKDIR /Vote
COPY Vote/Vote.csproj .
@@ -8,7 +8,7 @@ COPY /Vote .
RUN dotnet publish -c Release -o /out Vote.csproj
# app image
FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-1809
FROM mcr.microsoft.com/dotnet/core/aspnet:2.1
WORKDIR /app
ENTRYPOINT ["dotnet", "Vote.dll"]

View File

@@ -1,4 +1,4 @@
FROM microsoft/dotnet:2.1-sdk-nanoserver-1809 as builder
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 as builder
WORKDIR /Worker
COPY Worker/Worker.csproj .
@@ -8,7 +8,7 @@ COPY /Worker .
RUN dotnet publish -c Release -o /out Worker.csproj
# app image
FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-1809
FROM mcr.microsoft.com/dotnet/core/runtime:2.1
WORKDIR /app
ENTRYPOINT ["dotnet", "Worker.dll"]