We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d21fc8d commit cc6da91Copy full SHA for cc6da91
Dockerfile
@@ -0,0 +1,26 @@
1
+# sensor_monitor
2
+# 202012151337
3
+
4
+FROM python:3
5
+ENV PIP_NO_CACHE_DIR=1
6
7
+RUN useradd -m -r -u 1000 user && \
8
+ chown user /
9
10
+USER user
11
12
+# for pip
13
+ENV PATH $PATH:/home/user/.local/bin
14
15
+RUN pip3 install -U \
16
+ pip \
17
+ setuptools \
18
+ wheel
19
20
+COPY requirements.txt ./
21
+RUN pip3 install -r requirements.txt
22
23
+STOPSIGNAL SIGINT
24
25
+CMD [ "python", "/home/user/sensor_monitor/sensor_monitor.py" ]
26
0 commit comments