2017-06-30 17:07:33 +02:00
|
|
|
# Notice:
|
|
|
|
# When updating this file, please also update virtualization/Docker/Dockerfile.dev
|
|
|
|
# This way, the development image and the production image are kept in sync.
|
|
|
|
|
2019-02-12 01:33:03 -08:00
|
|
|
FROM python:3.7
|
2017-10-23 15:25:55 +02:00
|
|
|
LABEL maintainer="Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>"
|
2014-09-24 22:36:52 -05:00
|
|
|
|
2017-01-31 11:11:51 -06:00
|
|
|
# Uncomment any of the following lines to disable the installation.
|
2018-01-20 17:07:45 +01:00
|
|
|
#ENV INSTALL_TELLSTICK no
|
2017-01-31 11:11:51 -06:00
|
|
|
#ENV INSTALL_OPENALPR no
|
|
|
|
#ENV INSTALL_FFMPEG no
|
2017-02-01 04:02:06 +01:00
|
|
|
#ENV INSTALL_LIBCEC no
|
2017-06-15 23:31:30 -04:00
|
|
|
#ENV INSTALL_SSOCR no
|
2018-10-25 16:56:10 -04:00
|
|
|
#ENV INSTALL_DLIB no
|
2018-05-24 03:25:27 -04:00
|
|
|
#ENV INSTALL_IPERF3 no
|
2017-01-31 11:11:51 -06:00
|
|
|
|
2014-09-24 22:36:52 -05:00
|
|
|
VOLUME /config
|
|
|
|
|
2015-11-23 11:57:46 -07:00
|
|
|
WORKDIR /usr/src/app
|
2015-08-29 23:02:36 -07:00
|
|
|
|
2017-01-14 16:41:41 +01:00
|
|
|
# Copy build scripts
|
2017-02-01 04:02:06 +01:00
|
|
|
COPY virtualization/Docker/ virtualization/Docker/
|
|
|
|
RUN virtualization/Docker/setup_docker_prereqs
|
2017-01-09 11:49:11 -05:00
|
|
|
|
2017-01-14 16:41:41 +01:00
|
|
|
# Install hass component dependencies
|
2015-11-23 11:57:46 -07:00
|
|
|
COPY requirements_all.txt requirements_all.txt
|
2017-10-20 07:20:33 +01:00
|
|
|
# Uninstall enum34 because some dependencies install it but breaks Python 3.4+.
|
2017-06-24 07:29:39 +02:00
|
|
|
# See PR #8103 for more info.
|
2016-10-12 07:25:17 +02:00
|
|
|
RUN pip3 install --no-cache-dir -r requirements_all.txt && \
|
2019-04-10 16:46:23 +02:00
|
|
|
pip3 install --no-cache-dir mysqlclient psycopg2 uvloop==0.12.2 cchardet cython tensorflow
|
2016-05-13 15:55:52 +01:00
|
|
|
|
2015-11-23 11:57:46 -07:00
|
|
|
# Copy source
|
|
|
|
COPY . .
|
|
|
|
|
2017-04-26 07:37:05 -07:00
|
|
|
CMD [ "python", "-m", "homeassistant", "--config", "/config" ]
|