Mercurial > code > home > repos > homeauto
annotate service/rfid_pn532_py/Dockerfile.x86 @ 1235:d8aa414f21d9
py3, rfid-console rename
Ignore-this: 1b28d912e8847685a87c0c9ccb703608
darcs-hash:1812ff3e65cffea158d10f03e565942a684b4bd4
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sun, 07 Apr 2019 03:58:51 -0700 |
parents | e720c1cff03e |
children |
rev | line source |
---|---|
1215
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
1 FROM bang6:5000/base_x86 |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
2 |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
3 WORKDIR /opt |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
4 RUN apt-get install -y libnfc5 libfreefare0 libnfc-dev libfreefare-dev |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
5 RUN apt-get install -y python3-nose2 |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
6 COPY pyfreefare-build-x86 ./pyfreefare-build |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
7 |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
8 COPY requirements.txt . |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
9 RUN pip3 install -r requirements.txt |
1235 | 10 # not sure why this doesn't work from inside requirements.txt |
1216
e720c1cff03e
use the right py3 cyclone patch
drewp <drewp@bigasterisk.com>
parents:
1215
diff
changeset
|
11 RUN pip3 install -U 'https://github.com/drewp/cyclone/archive/python3.zip' |
1215
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
12 |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
13 COPY *.py *.html ./ |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
14 |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
15 ENV PYTHONPATH=/opt/pyfreefare-build |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
16 EXPOSE 10012 |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
17 |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
18 CMD ["/usr/bin/python3", "rfid.py", "-v"] |