esphome/Dockerfile

23 lines
554 B
Docker
Raw Normal View History

2018-04-07 01:23:03 +02:00
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/
2018-06-01 18:06:18 +02:00
RUN pip install --no-cache-dir -r requirements.txt && \
pip install --no-cache-dir tornado esptool
2018-04-07 01:23:03 +02:00
COPY docker/platformio.ini /usr/src/app/
RUN platformio settings set enable_telemetry No && \
platformio run -e espressif32 -e espressif8266; exit 0
COPY . .
2018-08-25 22:27:30 +02:00
RUN pip install -e . && \
pip install pillow tzlocal
2018-04-07 01:23:03 +02:00
WORKDIR /config
ENTRYPOINT ["esphomeyaml"]