view service/piNode/Dockerfile @ 1444:4afb1830bb5e

use rx version 3.x Ignore-this: 4232f8e780d35a8d0642e86521eb2801 darcs-hash:747608892b607f78260f4772a4ff2b24c7392f73
author drewp <drewp@bigasterisk.com>
date Tue, 24 Sep 2019 14:04:02 -0700
parents 233a07f068a8
children a93fbf0d0daa
line wrap: on
line source

FROM bang6:5000/base_pi

# super slow build
RUN pip install grpcio==1.22.0

WORKDIR /opt

COPY 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'

# 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 [ "python3", "./piNode.py" ]