Skip to content

Commit 37887b2

Browse files
committed
use stretch-slim to consisten with debug image
1 parent 2a09b36 commit 37887b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/dotnet-template-azure-iot-edge-module/CSharp/Dockerfile.amd64

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ RUN dotnet restore
77
COPY . ./
88
RUN dotnet publish -c Release -o out
99

10-
FROM microsoft/dotnet:2.1-runtime-alpine
10+
FROM microsoft/dotnet:2.1-runtime-stretch-slim
1111
WORKDIR /app
1212
COPY --from=build-env /app/out ./
1313

14-
RUN adduser -Ds /bin/sh moduleuser
14+
RUN useradd -ms /bin/bash moduleuser
1515
USER moduleuser
1616

1717
ENTRYPOINT ["dotnet", "SampleModule.dll"]

0 commit comments

Comments
 (0)