-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (20 loc) · 993 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM resin/edison-python:latest
RUN apt-get update && apt-get install -y curl python python-dev python-pip ssh-import-id git python-software-properties python-numpy udev libudev1
# Install Dropbear.
RUN apt-get install -y dropbear
RUN pip install flask
RUN curl -s https://bootstrap.pypa.io/ez_setup.py | python
RUN easy_install -ZU setuptools
# Install openaps
RUN easy_install -ZU openaps
# RUN openaps-install-udev-rules
RUN activate-global-python-argcomplete
#### **Install [mmglucosetools](https://github.com/loudnate/openaps-mmglucosetools)**
#### **Install [openaps-predict](https://github.com/loudnate/openaps-predict)**
RUN easy_install -ZU openapscontrib.mmhistorytools && easy_install openapscontrib.glucosetools && easy_install openapscontrib.predict
RUN openaps --version
RUN mkdir -p /opt/monitor
RUN git clone git://github.com/loudnate/openaps-monitor.git /opt/monitor
RUN cd /opt/monitor && pip install -r requirements.txt
COPY . /app
CMD ["bash", "/app/start.sh"]