2015-11-24 04:42:32 +00:00
|
|
|
FROM python:3.4
|
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
|
|
|
|
2015-09-01 05:01:45 +00:00
|
|
|
# For the nmap tracker
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends nmap net-tools && \
|
|
|
|
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
|
2015-10-24 18:27:47 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y cython3 libudev-dev && \
|
|
|
|
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
|
|
|
|
pip3 install "cython<0.23" && \
|
|
|
|
script/build_python_openzwave
|
2015-02-22 00:59:17 +00:00
|
|
|
|
2015-11-23 18:57:46 +00:00
|
|
|
COPY requirements_all.txt requirements_all.txt
|
|
|
|
RUN pip3 install --no-cache-dir -r requirements_all.txt
|
|
|
|
|
|
|
|
# Copy source
|
|
|
|
COPY . .
|
|
|
|
|
2014-11-05 15:58:20 +00:00
|
|
|
CMD [ "python", "-m", "homeassistant", "--config", "/config" ]
|