Skip to content

Commit

Permalink
Creating docker file for temperature Sensor. (#927)
Browse files Browse the repository at this point in the history
  • Loading branch information
aribeironovaes authored Mar 7, 2019
1 parent 54dccb0 commit a9474e0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ARG base_tag=1.0.0-preview010-linux-arm64v8
FROM azureiotedge/azureiotedge-module-base:${base_tag}

ARG EXE_DIR=.

ENV MODULE_NAME "SimulatedTemperatureSensor.dll"

WORKDIR /app

COPY $EXE_DIR/ ./

USER moduleuser

CMD echo "$(date --utc +"[%Y-%m-%d %H:%M:%S %:z]"): Starting Module" && \
exec /usr/bin/dotnet SimulatedTemperatureSensor.dll
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ARG base_tag=3.0-runtime-bionic-arm64v8
FROM microsoft/dotnet:${base_tag}

# Add an unprivileged user account for running the module
RUN useradd -ms /bin/bash moduleuser
USER moduleuser

0 comments on commit a9474e0

Please sign in to comment.