esphome/Dockerfile

29 lines
858 B
Text
Raw Normal View History

2018-11-03 16:24:26 +01:00
ARG BUILD_FROM=python:2.7
FROM ${BUILD_FROM}
2018-04-07 01:23:03 +02:00
MAINTAINER Otto Winter <contact@otto-winter.com>
2018-08-26 11:26:14 +02:00
RUN apt-get update && apt-get install -y \
python-pil \
2018-11-03 16:24:26 +01:00
git \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* && \
pip install --no-cache-dir --no-binary :all: platformio && \
platformio settings set enable_telemetry No && \
platformio settings set check_libraries_interval 1000000 && \
platformio settings set check_platformio_interval 1000000 && \
platformio settings set check_platforms_interval 1000000
2018-08-26 11:26:14 +02:00
2018-04-07 01:23:03 +02:00
ENV ESPHOMEYAML_OTA_HOST_PORT=6123
EXPOSE 6123
VOLUME /config
WORKDIR /usr/src/app
2018-11-03 16:24:26 +01:00
COPY docker/platformio.ini /pio/platformio.ini
2018-11-03 22:14:33 +01:00
RUN platformio run -d /pio; rm -rf /pio
2018-04-07 01:23:03 +02:00
COPY . .
2019-01-06 19:38:23 +01:00
RUN pip install --no-cache-dir --no-binary :all: -e .
2018-04-07 01:23:03 +02:00
WORKDIR /config
ENTRYPOINT ["esphomeyaml"]
CMD ["/config", "dashboard"]