view service/rfid_pn532_py/Dockerfile.x86 @ 1240:3930f997ceeb

debug Deferreds in -v mode Ignore-this: 10af9d1591a19f9db15fa0bccc00ee1 darcs-hash:8333cbce90f1919d0e201ef1c9aa91a3fa94c2e8
author drewp <drewp@bigasterisk.com>
date Sat, 13 Apr 2019 20:23:35 -0700
parents d8aa414f21d9
children
line wrap: on
line source

FROM bang6:5000/base_x86

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

COPY requirements.txt .
RUN pip3 install -r 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", "-v"]