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
|
|
|
|
2017-01-14 15:41:41 +00:00
|
|
|
# Copy build scripts
|
2017-01-17 06:55:42 +00:00
|
|
|
COPY script/setup_docker_prereqs script/build_python_openzwave script/build_libcec script/install_phantomjs script/
|
2017-01-14 15:41:41 +00:00
|
|
|
RUN script/setup_docker_prereqs
|
2017-01-09 16:49:11 +00:00
|
|
|
|
2017-01-14 15:41:41 +00:00
|
|
|
# Install hass component dependencies
|
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 && \
|
2017-01-02 21:04:09 +00:00
|
|
|
pip3 install --no-cache-dir 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" ]
|