hass-core/Dockerfile

32 lines
1.2 KiB
Text
Raw Normal View History

FROM python:3.5
2014-09-24 22:36:52 -05:00
MAINTAINER Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>
VOLUME /config
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
2016-02-28 20:46:16 -08:00
RUN pip3 install --no-cache-dir colorlog cython
2016-02-13 16:35:52 +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 \
libtelldus-core2 && \
2015-08-31 22:01:45 -07:00
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY script/build_python_openzwave script/build_python_openzwave
2016-02-29 23:15:14 -08: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-21 16:59:17 -08:00
COPY requirements_all.txt requirements_all.txt
RUN pip3 install --no-cache-dir -r requirements_all.txt && \
pip3 install --no-cache-dir mysqlclient psycopg2 uvloop
# Copy source
COPY . .
2014-11-05 07:58:20 -08:00
CMD [ "python", "-m", "homeassistant", "--config", "/config" ]