Dockerfile 388 B

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