Dockerfile 479 B

1234567891011121314151617
  1. FROM arm32v6/alpine
  2. ARG gid_input=${gid_input}
  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. && apk del linux-headers gcc musl-dev python3-dev \
  9. && apk add --no-cache mpc
  10. ADD rfid-test.py /opt/rfid-test.py
  11. USER rfidac
  12. CMD ["/usr/bin/python3","-u","/opt/rfid-test.py"]