|
@@ -1,5 +1,15 @@
|
|
-FROM arm32v6/alpine:edge
|
|
|
|
|
|
+FROM arm32v6/alpine
|
|
|
|
|
|
-RUN apk add --no-cache python3 linux-headers \
|
|
|
|
- && pip install --upgrade pip
|
|
|
|
|
|
+ARG gid_input=105
|
|
|
|
+
|
|
|
|
+RUN echo "rfidac:x:100:105:RFIC AC,,,:/opt:/sbin/nologin" >> /etc/passwd \
|
|
|
|
+ && apk add --no-cache --update python3 \
|
|
|
|
+ && pip3 install --upgrade pip setuptools \
|
|
|
|
+ && apk add --no-cache linux-headers gcc musl-dev python3-dev \
|
|
&& pip3 install evdev
|
|
&& pip3 install evdev
|
|
|
|
+
|
|
|
|
+ADD rfid-test.py /opt/rfid-test.py
|
|
|
|
+
|
|
|
|
+USER rfidac
|
|
|
|
+
|
|
|
|
+CMD ["/usr/bin/python3","-u","/opt/rfid-test.py"]
|