mirror of
https://github.com/esphome/esphome.git
synced 2024-09-06 00:48:11 +02:00
23 lines
554 B
Docker
23 lines
554 B
Docker
FROM python:2.7
|
|
MAINTAINER Otto Winter <contact@otto-winter.com>
|
|
|
|
ENV ESPHOMEYAML_OTA_HOST_PORT=6123
|
|
EXPOSE 6123
|
|
VOLUME /config
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY requirements.txt /usr/src/app/
|
|
RUN pip install --no-cache-dir -r requirements.txt && \
|
|
pip install --no-cache-dir tornado esptool
|
|
|
|
COPY docker/platformio.ini /usr/src/app/
|
|
RUN platformio settings set enable_telemetry No && \
|
|
platformio run -e espressif32 -e espressif8266; exit 0
|
|
|
|
COPY . .
|
|
RUN pip install -e . && \
|
|
pip install pillow tzlocal
|
|
|
|
WORKDIR /config
|
|
ENTRYPOINT ["esphomeyaml"]
|