2018-04-07 01:23:03 +02:00
|
|
|
FROM python:2.7
|
|
|
|
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 \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2018-04-07 01:23:03 +02:00
|
|
|
ENV ESPHOMEYAML_OTA_HOST_PORT=6123
|
|
|
|
EXPOSE 6123
|
|
|
|
VOLUME /config
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
COPY docker/platformio.ini /usr/src/app/
|
|
|
|
RUN platformio settings set enable_telemetry No && \
|
|
|
|
platformio run -e espressif32 -e espressif8266; exit 0
|
|
|
|
|
|
|
|
COPY . .
|
2018-09-25 13:26:01 +02:00
|
|
|
RUN pip install --no-cache-dir -e . && \
|
2018-09-26 18:14:51 +02:00
|
|
|
pip install --no-cache-dir tzlocal pillow
|
2018-04-07 01:23:03 +02:00
|
|
|
|
|
|
|
WORKDIR /config
|
|
|
|
ENTRYPOINT ["esphomeyaml"]
|