1526
|
1 FROM bang6:5000/base_pi
|
|
2
|
|
3 WORKDIR /opt
|
|
4 RUN apt-get install -y libnfc5 libfreefare0 libnfc-dev libfreefare-dev python3-nose2 libffi-dev
|
|
5 COPY pyfreefare-build-pi ./pyfreefare-build
|
|
6
|
|
7 COPY requirements.txt .
|
|
8 RUN pip3 install -Ur requirements.txt
|
|
9 # not sure why this doesn't work from inside requirements.txt
|
|
10 RUN pip3 install -U 'https://github.com/drewp/cyclone/archive/python3.zip'
|
|
11
|
|
12 COPY *.py *.html ./
|
|
13
|
|
14 ENV PYTHONPATH=/opt/pyfreefare-build
|
|
15 EXPOSE 10012
|
|
16
|
|
17 CMD ["/usr/bin/python3", "rfid.py"]
|