Mercurial > code > home > repos > homeauto
annotate service/piNode/Dockerfile @ 636:7c04b4f675ec
piNode to py3
Ignore-this: c04a6b87bb776997781404c7e76898d4
author | drewp@bigasterisk.com |
---|---|
date | Mon, 12 Aug 2019 10:07:49 -0700 |
parents | 69a84b3d1dfa |
children | a93fbf0d0daa |
rev | line source |
---|---|
365 | 1 FROM bang6:5000/base_pi |
332
ca0fd0774d07
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff
changeset
|
2 |
409
aea6dbb8abf5
build grpcio earlier in the stack since it's huge
drewp@bigasterisk.com
parents:
365
diff
changeset
|
3 # super slow build |
625
69a84b3d1dfa
frontdoor configs; move device class timing to greplin stats
drewp@bigasterisk.com
parents:
552
diff
changeset
|
4 RUN pip install grpcio==1.22.0 |
409
aea6dbb8abf5
build grpcio earlier in the stack since it's huge
drewp@bigasterisk.com
parents:
365
diff
changeset
|
5 |
552
98384c3ccd33
update build and deps to use invoke and to use new lib layout, plus more stats collection
drewp@bigasterisk.com
parents:
409
diff
changeset
|
6 WORKDIR /opt |
98384c3ccd33
update build and deps to use invoke and to use new lib layout, plus more stats collection
drewp@bigasterisk.com
parents:
409
diff
changeset
|
7 |
332
ca0fd0774d07
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff
changeset
|
8 COPY requirements.txt ./ |
ca0fd0774d07
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff
changeset
|
9 |
636 | 10 RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements.txt |
11 ## not sure why this doesn't work from inside requirements.txt | |
12 RUN pip3 install -U 'https://github.com/drewp/cyclone/archive/python3.zip?v3' | |
332
ca0fd0774d07
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff
changeset
|
13 |
636 | 14 # fold these into requirements.txt |
15 RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple "devices_shared==0.4.0" | |
16 RUN apt install -y vim | |
338
f64e20d3407e
RgbPixelsAnimation and docker build updates
drewp@bigasterisk.com
parents:
332
diff
changeset
|
17 |
332
ca0fd0774d07
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff
changeset
|
18 COPY *.py ./ |
ca0fd0774d07
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff
changeset
|
19 COPY config/ ./config/ |
ca0fd0774d07
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff
changeset
|
20 |
625
69a84b3d1dfa
frontdoor configs; move device class timing to greplin stats
drewp@bigasterisk.com
parents:
552
diff
changeset
|
21 EXPOSE 9059 |
69a84b3d1dfa
frontdoor configs; move device class timing to greplin stats
drewp@bigasterisk.com
parents:
552
diff
changeset
|
22 |
636 | 23 CMD [ "python3", "./piNode.py" ] |