view service/cardReader/Dockerfile.pi @ 1526:c476543e761e

rename rfid_pn532_py Ignore-this: 89356f780bb5df4d9ec639c44d2a3a67 darcs-hash:212e7f3250cf67ce80922597188d33547d41b0f8
author drewp <drewp@bigasterisk.com>
date Wed, 05 Feb 2020 16:40:46 -0800
parents
children
line wrap: on
line source

FROM bang6:5000/base_pi

WORKDIR /opt
RUN apt-get install -y libnfc5 libfreefare0 libnfc-dev libfreefare-dev python3-nose2 libffi-dev
COPY pyfreefare-build-pi ./pyfreefare-build

COPY requirements.txt .
RUN pip3 install -Ur requirements.txt
# not sure why this doesn't work from inside requirements.txt
RUN pip3 install -U 'https://github.com/drewp/cyclone/archive/python3.zip'

COPY *.py *.html  ./

ENV PYTHONPATH=/opt/pyfreefare-build
EXPOSE 10012

CMD ["/usr/bin/python3", "rfid.py"]