2017-06-30 15:07:33 +00: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-07-17 22:16:15 +00:00
|
|
|
FROM python:3.7-buster
|
2017-10-23 13:25:55 +00:00
|
|
|
LABEL maintainer="Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>"
|
2014-09-25 03:36:52 +00:00
|
|
|
|
2017-01-31 17:11:51 +00:00
|
|
|
# Uncomment any of the following lines to disable the installation.
|
2018-01-20 16:07:45 +00:00
|
|
|
#ENV INSTALL_TELLSTICK no
|
2017-01-31 17:11:51 +00:00
|
|
|
#ENV INSTALL_OPENALPR no
|
|
|
|
#ENV INSTALL_FFMPEG no
|
2017-02-01 03:02:06 +00:00
|
|
|
#ENV INSTALL_LIBCEC no
|
2017-06-16 03:31:30 +00:00
|
|
|
#ENV INSTALL_SSOCR no
|
2018-10-25 20:56:10 +00:00
|
|
|
#ENV INSTALL_DLIB no
|
2018-05-24 07:25:27 +00:00
|
|
|
#ENV INSTALL_IPERF3 no
|
2019-08-09 19:08:35 +00:00
|
|
|
#ENV INSTALL_LOCALES no
|
2017-01-31 17:11:51 +00:00
|
|
|
|
2014-09-25 03:36:52 +00:00
|
|
|
VOLUME /config
|
|
|
|
|
2015-11-23 18:57:46 +00:00
|
|
|
WORKDIR /usr/src/app
|
2015-08-30 06:02:36 +00:00
|
|
|
|
2017-01-14 15:41:41 +00:00
|
|
|
# Copy build scripts
|
2017-02-01 03:02:06 +00:00
|
|
|
COPY virtualization/Docker/ virtualization/Docker/
|
|
|
|
RUN virtualization/Docker/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 && \
|
2019-04-10 14:46:23 +00:00
|
|
|
pip3 install --no-cache-dir mysqlclient psycopg2 uvloop==0.12.2 cchardet cython tensorflow
|
2016-05-13 14:55:52 +00:00
|
|
|
|
2015-11-23 18:57:46 +00:00
|
|
|
# Copy source
|
|
|
|
COPY . .
|
|
|
|
|
2019-06-23 19:44:26 +00:00
|
|
|
EXPOSE 8123
|
|
|
|
EXPOSE 8300
|
|
|
|
EXPOSE 51827
|
|
|
|
|
2017-04-26 14:37:05 +00:00
|
|
|
CMD [ "python", "-m", "homeassistant", "--config", "/config" ]
|