2016-09-18 06:32:11 +00:00
|
|
|
FROM python:3.5
|
2014-09-25 03:36:52 +00:00
|
|
|
MAINTAINER Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>
|
|
|
|
|
|
|
|
VOLUME /config
|
|
|
|
|
2015-11-23 18:57:46 +00:00
|
|
|
RUN mkdir -p /usr/src/app
|
|
|
|
WORKDIR /usr/src/app
|
2015-08-30 06:02:36 +00:00
|
|
|
|
2016-02-29 04:46:16 +00:00
|
|
|
RUN pip3 install --no-cache-dir colorlog cython
|
2016-02-13 16:35:52 +00:00
|
|
|
|
2016-12-06 17:01:47 +00:00
|
|
|
# For the nmap tracker, bluetooth tracker, Z-Wave, tellstick
|
|
|
|
RUN echo "deb http://download.telldus.com/debian/ stable main" >> /etc/apt/sources.list.d/telldus.list && \
|
|
|
|
wget -qO - http://download.telldus.se/debian/telldus-public.key | apt-key add - && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends nmap net-tools cython3 libudev-dev sudo libglib2.0-dev bluetooth libbluetooth-dev \
|
2016-12-13 16:53:42 +00:00
|
|
|
libtelldus-core2 && \
|
2015-09-01 05:01:45 +00:00
|
|
|
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
|
2015-11-23 18:57:46 +00:00
|
|
|
COPY script/build_python_openzwave script/build_python_openzwave
|
2016-03-01 07:15:14 +00:00
|
|
|
RUN script/build_python_openzwave && \
|
|
|
|
mkdir -p /usr/local/share/python-openzwave && \
|
|
|
|
ln -sf /usr/src/app/build/python-openzwave/openzwave/config /usr/local/share/python-openzwave/config
|
2015-02-22 00:59:17 +00:00
|
|
|
|
2015-11-23 18:57:46 +00:00
|
|
|
COPY requirements_all.txt requirements_all.txt
|
2016-10-12 05:25:17 +00:00
|
|
|
RUN pip3 install --no-cache-dir -r requirements_all.txt && \
|
2016-10-26 06:38:32 +00:00
|
|
|
pip3 install mysqlclient psycopg2 uvloop
|
2016-05-13 14:55:52 +00:00
|
|
|
|
2015-11-23 18:57:46 +00:00
|
|
|
# Copy source
|
|
|
|
COPY . .
|
|
|
|
|
2014-11-05 15:58:20 +00:00
|
|
|
CMD [ "python", "-m", "homeassistant", "--config", "/config" ]
|