Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit e4a34d4

Browse files
thandotetteyThando TetteyRupengLiu
authored
upgraded to dotnet core 3.1 (#422)
Co-authored-by: Thando Tettey <[email protected]> Co-authored-by: RupengLiu <[email protected]>
1 parent 0892a8b commit e4a34d4

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

src/APIM_ARMTemplate/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env
2+
WORKDIR /app
3+
4+
# Copy csproj and restore as distinct layers
5+
COPY /apimtemplate/*.csproj ./
6+
RUN dotnet restore
7+
8+
# Copy everything else and build
9+
COPY . ./
10+
WORKDIR /app/apimtemplate
11+
RUN dotnet publish apimtemplate.sln -c Release -o out
12+
13+
# Build runtime image
14+
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
15+
WORKDIR /
16+
COPY --from=build-env /app/apimtemplate/out .

src/APIM_ARMTemplate/apimtemplate.test/apimtemplate.test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.1</TargetFramework>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77

src/APIM_ARMTemplate/apimtemplate/apimtemplate.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp2.1</TargetFramework>
5+
<TargetFramework>netcoreapp3.1</TargetFramework>
66
<ProjectGuid>{B5183465-2BC1-4206-9C9F-5AC9615AC941}</ProjectGuid>
77
<LangVersion>preview</LangVersion>
88
<PackAsTool>true</PackAsTool>

0 commit comments

Comments
 (0)