Skip to content

Commit cc6da91

Browse files
authored
build docker container
1 parent d21fc8d commit cc6da91

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Dockerfile

+26
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)