diff service/piNode/Dockerfile @ 1439:233a07f068a8

piNode to py3 Ignore-this: c04a6b87bb776997781404c7e76898d4 darcs-hash:5b1439a8dcebf562fb65368c8db74d194e05301a
author drewp <drewp@bigasterisk.com>
date Mon, 12 Aug 2019 10:07:49 -0700
parents 56e07d3f0930
children a93fbf0d0daa
line wrap: on
line diff
--- a/service/piNode/Dockerfile	Mon Aug 12 02:23:15 2019 -0700
+++ b/service/piNode/Dockerfile	Mon Aug 12 10:07:49 2019 -0700
@@ -7,15 +7,17 @@
 
 COPY requirements.txt ./
 
-RUN pip install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements.txt
+RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements.txt
+## not sure why this doesn't work from inside requirements.txt
+RUN pip3 install -U 'https://github.com/drewp/cyclone/archive/python3.zip?v3'
 
-# when we go to py3:
-## not sure why this doesn't work from inside requirements.txt
-#RUN pip3 install -U 'https://github.com/drewp/cyclone/archive/python3.zip?v3'
+# fold these into requirements.txt
+RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple "devices_shared==0.4.0"
+RUN apt install -y vim
 
 COPY *.py ./
 COPY config/ ./config/
 
 EXPOSE 9059
 
-CMD [ "python", "./piNode.py" ]
+CMD [ "python3", "./piNode.py" ]