File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed
content/dotnet-template-azure-iot-edge-module Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change
1
+ FROM microsoft/dotnet:2.0-runtime-stretch AS base
2
+
3
+ RUN apt-get update && \
4
+ apt-get install -y --no-install-recommends unzip procps && \
5
+ curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/vsdbg && \
6
+ rm -rf /var/lib/apt/lists/*
7
+
1
8
FROM microsoft/dotnet:2.0-sdk AS build-env
2
9
WORKDIR /app
3
10
@@ -7,12 +14,8 @@ RUN dotnet restore
7
14
COPY . ./
8
15
RUN dotnet publish -c Debug -o out
9
16
10
- FROM microsoft/dotnet:2.0-runtime-stretch
17
+ FROM base
11
18
WORKDIR /app
12
19
COPY --from=build-env /app/out ./
13
20
14
- RUN apt-get update
15
- RUN apt-get install -y unzip procps
16
- RUN curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/vsdbg
17
-
18
21
ENTRYPOINT ["dotnet", "SampleModule.dll"]
Original file line number Diff line number Diff line change
1
+ FROM microsoft/dotnet:2.0-runtime-stretch AS base
2
+
3
+ RUN apt-get update && \
4
+ apt-get install -y --no-install-recommends unzip procps && \
5
+ curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/vsdbg && \
6
+ rm -rf /var/lib/apt/lists/*
7
+
1
8
FROM microsoft/dotnet:2.0-sdk AS build-env
2
9
WORKDIR /app
3
10
@@ -7,12 +14,8 @@ RUN dotnet restore
7
14
COPY . ./
8
15
RUN dotnet publish -c Debug -o out
9
16
10
- FROM microsoft/dotnet:2.0-runtime-stretch
17
+ FROM base
11
18
WORKDIR /app
12
19
COPY --from=build-env /app/out ./
13
20
14
- RUN apt-get update
15
- RUN apt-get install -y unzip procps
16
- RUN curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/vsdbg
17
-
18
21
ENTRYPOINT ["dotnet", "SampleModule.dll"]
You can’t perform that action at this time.
0 commit comments