Skip to content

Commit

Permalink
Merge pull request #197 from StefanScherer/update-dotnet-3-1
Browse files Browse the repository at this point in the history
Update dotnet 3.1 (needed to support Apple Silicon M1)
  • Loading branch information
justincormack committed May 5, 2021
2 parents e433be5 + 89e063d commit 5edf3f7
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions result/dotnet/Dockerfile.1809
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 as builder
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as builder

WORKDIR /Result
COPY Result/Result.csproj .
Expand All @@ -8,7 +8,7 @@ COPY /Result .
RUN dotnet publish -c Release -o /out Result.csproj

# app image
FROM mcr.microsoft.com/dotnet/core/aspnet:2.1
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1

WORKDIR /app
ENTRYPOINT ["dotnet", "Result.dll"]
Expand Down
2 changes: 1 addition & 1 deletion result/dotnet/Result/Result.csproj
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions vote/dotnet/Dockerfile.1809
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 as builder
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as builder

WORKDIR /Vote
COPY Vote/Vote.csproj .
Expand All @@ -8,7 +8,7 @@ COPY /Vote .
RUN dotnet publish -c Release -o /out Vote.csproj

# app image
FROM mcr.microsoft.com/dotnet/core/aspnet:2.1
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1

WORKDIR /app
ENTRYPOINT ["dotnet", "Vote.dll"]
Expand Down
2 changes: 1 addition & 1 deletion vote/dotnet/Vote/Vote.csproj
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions worker/Dockerfile
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 as builder
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as builder

WORKDIR /Worker
COPY src/Worker/Worker.csproj .
Expand All @@ -8,7 +8,7 @@ COPY src/Worker/ .
RUN dotnet publish -c Release -o /out Worker.csproj

# app image
FROM mcr.microsoft.com/dotnet/core/runtime:2.1
FROM mcr.microsoft.com/dotnet/core/runtime:3.1

WORKDIR /app
ENTRYPOINT ["dotnet", "Worker.dll"]
Expand Down
4 changes: 2 additions & 2 deletions worker/dotnet/Dockerfile.1809
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 as builder
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as builder

WORKDIR /Worker
COPY Worker/Worker.csproj .
Expand All @@ -8,7 +8,7 @@ COPY /Worker .
RUN dotnet publish -c Release -o /out Worker.csproj

# app image
FROM mcr.microsoft.com/dotnet/core/runtime:2.1
FROM mcr.microsoft.com/dotnet/core/runtime:3.1

WORKDIR /app
ENTRYPOINT ["dotnet", "Worker.dll"]
Expand Down
2 changes: 1 addition & 1 deletion worker/dotnet/Worker/Worker.csproj
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion worker/src/Worker/Worker.csproj
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 5edf3f7

Please sign in to comment.