Skip to content

Commit 4c5ff58

Browse files
committed
Add Dockfiles for ARM32V7
1 parent ee91024 commit 4c5ff58

File tree

5 files changed

+29
-1
lines changed

5 files changed

+29
-1
lines changed

Test/Test.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void TestArchitecture(string lang, bool skipRestore)
5555
{
5656
var repository = "test.azurecr.io/test";
5757
var scaffoldName = BeforeEach(lang, repository, skipRestore);
58-
var filesToCheck = new List<string> { ".gitignore", "module.json", "Dockerfile", "Dockerfile.amd64.debug" };
58+
var filesToCheck = new List<string> { ".gitignore", "module.json", "Dockerfile", "Dockerfile.amd64.debug", "Dockerfile.arm32v7" };
5959

6060
if (skipRestore)
6161
{
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM microsoft/dotnet:2.0-sdk AS build-env
2+
WORKDIR /app
3+
4+
COPY *.csproj ./
5+
RUN dotnet restore
6+
7+
COPY . ./
8+
RUN dotnet publish -c Release -o out
9+
10+
FROM microsoft/dotnet:2.0-runtime-stretch-arm32v7
11+
WORKDIR /app
12+
COPY --from=build-env /app/out ./
13+
ENTRYPOINT ["dotnet", "SampleModule.dll"]

content/dotnet-template-azure-iot-edge-module/CSharp/module.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"platforms": {
99
"amd64": "./Dockerfile",
1010
"amd64.debug": "./Dockerfile.amd64.debug",
11+
"arm32v7": "./Dockerfile.arm32v7",
1112
"windows-amd64": "./Dockerfile"
1213
}
1314
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM microsoft/dotnet:2.0-sdk AS build-env
2+
WORKDIR /app
3+
4+
COPY *.fsproj ./
5+
RUN dotnet restore
6+
7+
COPY . ./
8+
RUN dotnet publish -c Release -o out
9+
10+
FROM microsoft/dotnet:2.0-runtime-stretch-arm32v7
11+
WORKDIR /app
12+
COPY --from=build-env /app/out ./
13+
ENTRYPOINT ["dotnet", "SampleModule.dll"]

content/dotnet-template-azure-iot-edge-module/FSharp/module.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"platforms": {
99
"amd64": "./Dockerfile",
1010
"amd64.debug": "./Dockerfile.amd64.debug",
11+
"arm32v7": "./Dockerfile.arm32v7",
1112
"windows-amd64": "./Dockerfile"
1213
}
1314
}

0 commit comments

Comments
 (0)