Dockerfile 489 B

1234567891011121314151617
  1. FROM arm32v6/alpine
  2. ARG gid_input=105
  3. RUN echo "rfidac:x:100:$gid_input:RFIC AC,,,:/opt:/sbin/nologin" >> /etc/passwd \
  4. && apk add --no-cache --update bash 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 ./data/rfid-test.py /opt/rfid-test.py
  11. USER rfidac
  12. CMD ["/usr/bin/python3","-u","/opt/rfid-test.py"]