mirror of
https://github.com/esphome/esphome.git
synced 2024-12-25 06:54:52 +01:00
25 lines
822 B
Docker
25 lines
822 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
|
|
|
|
COPY docker/platformio.ini /usr/src/app/
|
|
RUN platformio settings set enable_telemetry No && \
|
|
platformio lib --global install esphomelib && \
|
|
platformio run -e espressif32 -e espressif8266; exit 0
|
|
|
|
# Fix issue with static IP on ESP32: https://github.com/espressif/arduino-esp32/issues/1081
|
|
RUN curl https://github.com/espressif/arduino-esp32/commit/144480637a718844b8f48f4392da8d4f622f2e5e.patch | \
|
|
patch /root/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.cpp
|
|
|
|
COPY . .
|
|
RUN pip install -e .
|
|
|
|
WORKDIR /config
|
|
ENTRYPOINT ["esphomeyaml"]
|