1
0
mirror of https://github.com/esphome/esphome.git synced 2024-10-06 19:00:59 +01:00
esphome/Dockerfile

29 lines
858 B
Docker
Raw Normal View History

2018-11-03 15:24:26 +00:00
ARG BUILD_FROM=python:2.7
FROM ${BUILD_FROM}
2018-04-07 00:23:03 +01:00
MAINTAINER Otto Winter <contact@otto-winter.com>
2018-08-26 10:26:14 +01:00
RUN apt-get update && apt-get install -y \
python-pil \
2018-11-03 15:24:26 +00: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 10:26:14 +01:00
2018-04-07 00:23:03 +01:00
ENV ESPHOMEYAML_OTA_HOST_PORT=6123
EXPOSE 6123
VOLUME /config
WORKDIR /usr/src/app
2018-11-03 15:24:26 +00:00
COPY docker/platformio.ini /pio/platformio.ini
2018-11-03 21:14:33 +00:00
RUN platformio run -d /pio; rm -rf /pio
2018-04-07 00:23:03 +01:00
COPY . .
2019-01-06 18:38:23 +00:00
RUN pip install --no-cache-dir --no-binary :all: -e .
2018-04-07 00:23:03 +01:00
WORKDIR /config
ENTRYPOINT ["esphomeyaml"]
CMD ["/config", "dashboard"]