-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (25 loc) · 906 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
# Pull base image
FROM resin/rpi-raspbian:wheezy
COPY . /savemyorchids
# Install dependencies
RUN apt-get update && apt-get install -y \
git \
build-essential \
python \
python-dev \
python-pip \
python-virtualenv \
--no-install-recommends && \
rm -rf /var/lib/apt/lists/* && \
chmod +x /savemyorchids/entrypoint.sh && \
virtualenv -p /usr/bin/python2.7 /venv && \
# this is a workaround to install python-daemon without errors
/venv/bin/pip install docutils && \
git clone https://github.com/adafruit/Adafruit_Python_DHT && \
cd Adafruit_Python_DHT && /venv/bin/python setup.py install && \
/venv/bin/pip install -r /savemyorchids/requirements.txt
# Define working directory
WORKDIR /savemyorchids
ENTRYPOINT ["/savemyorchids/entrypoint.sh"]
# Define default command
CMD ["bash"]