annotate service/cardReader/Dockerfile.x86 @ 1754:92999dfbf321 default tip

add shelly support
author drewp@bigasterisk.com
date Tue, 04 Jun 2024 13:03:43 -0700
parents 1ecceb2e92a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
412
91162a54553c copy rest of rfid service from the first try. fix some crashes in tags.py
drewp@bigasterisk.com
parents:
diff changeset
1 FROM bang6:5000/base_x86
91162a54553c copy rest of rfid service from the first try. fix some crashes in tags.py
drewp@bigasterisk.com
parents:
diff changeset
2
91162a54553c copy rest of rfid service from the first try. fix some crashes in tags.py
drewp@bigasterisk.com
parents:
diff changeset
3 WORKDIR /opt
91162a54553c copy rest of rfid service from the first try. fix some crashes in tags.py
drewp@bigasterisk.com
parents:
diff changeset
4 RUN apt-get install -y libnfc5 libfreefare0 libnfc-dev libfreefare-dev
91162a54553c copy rest of rfid service from the first try. fix some crashes in tags.py
drewp@bigasterisk.com
parents:
diff changeset
5 RUN apt-get install -y python3-nose2
91162a54553c copy rest of rfid service from the first try. fix some crashes in tags.py
drewp@bigasterisk.com
parents:
diff changeset
6 COPY pyfreefare-build-x86 ./pyfreefare-build
91162a54553c copy rest of rfid service from the first try. fix some crashes in tags.py
drewp@bigasterisk.com
parents:
diff changeset
7
91162a54553c copy rest of rfid service from the first try. fix some crashes in tags.py
drewp@bigasterisk.com
parents:
diff changeset
8 COPY requirements.txt .
91162a54553c copy rest of rfid service from the first try. fix some crashes in tags.py
drewp@bigasterisk.com
parents:
diff changeset
9 RUN pip3 install -r requirements.txt
432
f134b64a0ab7 py3, rfid-console rename
drewp@bigasterisk.com
parents: 413
diff changeset
10 # not sure why this doesn't work from inside requirements.txt
413
5fc75de6b905 use the right py3 cyclone patch
drewp@bigasterisk.com
parents: 412
diff changeset
11 RUN pip3 install -U 'https://github.com/drewp/cyclone/archive/python3.zip'
412
91162a54553c copy rest of rfid service from the first try. fix some crashes in tags.py
drewp@bigasterisk.com
parents:
diff changeset
12
91162a54553c copy rest of rfid service from the first try. fix some crashes in tags.py
drewp@bigasterisk.com
parents:
diff changeset
13 COPY *.py *.html ./
91162a54553c copy rest of rfid service from the first try. fix some crashes in tags.py
drewp@bigasterisk.com
parents:
diff changeset
14
91162a54553c copy rest of rfid service from the first try. fix some crashes in tags.py
drewp@bigasterisk.com
parents:
diff changeset
15 ENV PYTHONPATH=/opt/pyfreefare-build
91162a54553c copy rest of rfid service from the first try. fix some crashes in tags.py
drewp@bigasterisk.com
parents:
diff changeset
16 EXPOSE 10012
91162a54553c copy rest of rfid service from the first try. fix some crashes in tags.py
drewp@bigasterisk.com
parents:
diff changeset
17
91162a54553c copy rest of rfid service from the first try. fix some crashes in tags.py
drewp@bigasterisk.com
parents:
diff changeset
18 CMD ["/usr/bin/python3", "rfid.py", "-v"]