Mercurial > code > home > repos > homeauto
annotate service/piNode/Dockerfile @ 722:a93fbf0d0daa
dep updates; graph url renames; and other build updates
Ignore-this: 4603ef3d8db650a13e543dad8580ade8
author | drewp@bigasterisk.com |
---|---|
date | Wed, 05 Feb 2020 00:23:06 -0800 |
parents | 7c04b4f675ec |
children |
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 |
722
a93fbf0d0daa
dep updates; graph url renames; and other build updates
drewp@bigasterisk.com
parents:
636
diff
changeset
|
3 # fold these into base image |
a93fbf0d0daa
dep updates; graph url renames; and other build updates
drewp@bigasterisk.com
parents:
636
diff
changeset
|
4 RUN apt install -y vim |
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 |
722
a93fbf0d0daa
dep updates; graph url renames; and other build updates
drewp@bigasterisk.com
parents:
636
diff
changeset
|
8 COPY requirements_*.txt ./ |
a93fbf0d0daa
dep updates; graph url renames; and other build updates
drewp@bigasterisk.com
parents:
636
diff
changeset
|
9 RUN pip3 install -v --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements_slow.txt |
a93fbf0d0daa
dep updates; graph url renames; and other build updates
drewp@bigasterisk.com
parents:
636
diff
changeset
|
10 RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements_external.txt |
a93fbf0d0daa
dep updates; graph url renames; and other build updates
drewp@bigasterisk.com
parents:
636
diff
changeset
|
11 RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements_local.txt |
332
ca0fd0774d07
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff
changeset
|
12 |
636 | 13 ## not sure why this doesn't work from inside requirements.txt |
14 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
|
15 |
ca0fd0774d07
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff
changeset
|
16 COPY *.py ./ |
ca0fd0774d07
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff
changeset
|
17 COPY config/ ./config/ |
ca0fd0774d07
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff
changeset
|
18 |
625
69a84b3d1dfa
frontdoor configs; move device class timing to greplin stats
drewp@bigasterisk.com
parents:
552
diff
changeset
|
19 EXPOSE 9059 |
69a84b3d1dfa
frontdoor configs; move device class timing to greplin stats
drewp@bigasterisk.com
parents:
552
diff
changeset
|
20 |
636 | 21 CMD [ "python3", "./piNode.py" ] |