File tree Expand file tree Collapse file tree 6 files changed +16
-16
lines changed
content/dotnet-template-azure-iot-edge-module/CSharp Expand file tree Collapse file tree 6 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 1
1
language : csharp
2
- dotnet : 2.0.2
2
+ dotnet : 2.1
3
3
mono : alpha
4
4
before_install :
5
5
- mkdir -p .nuget
Original file line number Diff line number Diff line change 2
2
<package >
3
3
<metadata >
4
4
<id >Microsoft.Azure.IoT.Edge.Module</id >
5
- <version >2.1.0 </version >
5
+ <version >2.2.0-rc </version >
6
6
<title >Azure IoT Edge Module</title >
7
7
<authors >Microsoft</authors >
8
8
<owners >microsoft, nugetazureiotedge</owners >
Original file line number Diff line number Diff line change 1
- FROM microsoft/dotnet:2.0 -sdk AS build-env
1
+ FROM microsoft/dotnet:2.1 -sdk AS build-env
2
2
WORKDIR /app
3
3
4
4
COPY *.csproj ./
@@ -7,11 +7,11 @@ RUN dotnet restore
7
7
COPY . ./
8
8
RUN dotnet publish -c Release -o out
9
9
10
- FROM microsoft/dotnet:2.0 -runtime
10
+ FROM microsoft/dotnet:2.1 -runtime-alpine
11
11
WORKDIR /app
12
12
COPY --from=build-env /app/out ./
13
13
14
- RUN useradd -ms /bin/bash moduleuser
14
+ RUN adduser -Ds /bin/sh moduleuser
15
15
USER moduleuser
16
16
17
17
ENTRYPOINT ["dotnet", "SampleModule.dll"]
Original file line number Diff line number Diff line change 1
- FROM microsoft/dotnet:2.0 -runtime-stretch AS base
1
+ FROM microsoft/dotnet:2.1 -runtime-stretch-slim AS base
2
2
3
3
RUN apt-get update && \
4
4
apt-get install -y --no-install-recommends unzip procps && \
@@ -8,7 +8,7 @@ RUN useradd -ms /bin/bash moduleuser
8
8
USER moduleuser
9
9
RUN curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/vsdbg
10
10
11
- FROM microsoft/dotnet:2.0 -sdk AS build-env
11
+ FROM microsoft/dotnet:2.1 -sdk AS build-env
12
12
WORKDIR /app
13
13
14
14
COPY *.csproj ./
Original file line number Diff line number Diff line change 1
- FROM microsoft/dotnet:2.0 -sdk AS build-env
1
+ FROM microsoft/dotnet:2.1 -sdk AS build-env
2
2
WORKDIR /app
3
3
4
4
COPY *.csproj ./
@@ -7,7 +7,7 @@ RUN dotnet restore
7
7
COPY . ./
8
8
RUN dotnet publish -c Release -o out
9
9
10
- FROM microsoft/dotnet:2.0 -runtime
10
+ FROM microsoft/dotnet:2.1 -runtime-nanoserver-1803
11
11
WORKDIR /app
12
12
COPY --from=build-env /app/out ./
13
13
ENTRYPOINT ["dotnet", "SampleModule.dll"]
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<OutputType >Exe</OutputType >
4
- <TargetFramework >netcoreapp2.0 </TargetFramework >
4
+ <TargetFramework >netcoreapp2.1 </TargetFramework >
5
5
</PropertyGroup >
6
6
7
7
<PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netcoreapp2.0|AnyCPU'" >
10
10
</PropertyGroup >
11
11
12
12
<ItemGroup >
13
- <PackageReference Include =" Microsoft.Azure.Devices.Client" Version =" 1.17 .0" />
14
- <PackageReference Include =" Microsoft.Extensions.Configuration" Version =" 2.0.0 " />
15
- <PackageReference Include =" Microsoft.Extensions.Configuration.Abstractions" Version =" 2.0.0 " />
16
- <PackageReference Include =" Microsoft.Extensions.Configuration.Binder" Version =" 2.0.0 " />
17
- <PackageReference Include =" Microsoft.Extensions.Configuration.EnvironmentVariables" Version =" 2.0.0 " />
18
- <PackageReference Include =" Microsoft.Extensions.Configuration.FileExtensions" Version =" 2.0.0 " />
13
+ <PackageReference Include =" Microsoft.Azure.Devices.Client" Version =" 1.18 .0" />
14
+ <PackageReference Include =" Microsoft.Extensions.Configuration" Version =" 2.1.1 " />
15
+ <PackageReference Include =" Microsoft.Extensions.Configuration.Abstractions" Version =" 2.1.1 " />
16
+ <PackageReference Include =" Microsoft.Extensions.Configuration.Binder" Version =" 2.1.1 " />
17
+ <PackageReference Include =" Microsoft.Extensions.Configuration.EnvironmentVariables" Version =" 2.1.1 " />
18
+ <PackageReference Include =" Microsoft.Extensions.Configuration.FileExtensions" Version =" 2.1.1 " />
19
19
<PackageReference Include =" Microsoft.Extensions.Configuration.Json" Version =" 2.0.0" />
20
20
<PackageReference Include =" System.Runtime.Loader" Version =" 4.3.0" />
21
21
</ItemGroup >
You can’t perform that action at this time.
0 commit comments