home-assistant-core/Dockerfile

39 lines
1 KiB
Docker
Raw Normal View History

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.
FROM python:3.7-buster
LABEL maintainer="Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>"
2014-09-25 03:36:52 +00:00
# Uncomment any of the following lines to disable the installation.
#ENV INSTALL_TELLSTICK no
#ENV INSTALL_OPENALPR no
#ENV INSTALL_FFMPEG no
#ENV INSTALL_LIBCEC no
#ENV INSTALL_SSOCR no
#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
2014-09-25 03:36:52 +00:00
VOLUME /config
WORKDIR /usr/src/app
# Copy build scripts
COPY virtualization/Docker/ virtualization/Docker/
RUN virtualization/Docker/setup_docker_prereqs
# Install hass component dependencies
COPY requirements_all.txt requirements_all.txt
RUN pip3 install --no-cache-dir -r requirements_all.txt && \
pip3 install --no-cache-dir mysqlclient psycopg2 cchardet cython tensorflow
# Copy source
COPY . .
EXPOSE 8123
EXPOSE 8300
EXPOSE 51827
2017-04-26 14:37:05 +00:00
CMD [ "python", "-m", "homeassistant", "--config", "/config" ]