2019-02-14 16:07:28 +01:00
|
|
|
ARG BUILD_FROM=esphome/esphome-hassio-base-amd64:1.1.0
|
2018-11-03 16:24:26 +01:00
|
|
|
FROM ${BUILD_FROM}
|
|
|
|
|
2018-12-05 21:22:06 +01:00
|
|
|
RUN \
|
2019-02-13 16:54:02 +01:00
|
|
|
apt-get update \
|
2018-12-05 21:22:06 +01:00
|
|
|
&& apt-get install -y --no-install-recommends \
|
2018-11-03 16:24:26 +01:00
|
|
|
python-pil \
|
2019-02-13 16:54:02 +01:00
|
|
|
&& rm -rf \
|
2018-12-05 21:22:06 +01:00
|
|
|
/tmp/* \
|
|
|
|
/var/{cache,log}/* \
|
2019-02-13 16:54:02 +01:00
|
|
|
/var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# Copy root filesystem
|
|
|
|
COPY docker/rootfs/ /
|
|
|
|
COPY setup.py setup.cfg MANIFEST.in /opt/esphome/
|
|
|
|
COPY esphome /opt/esphome/esphome
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
pip2 install --no-cache-dir --no-binary :all: -e /opt/esphome
|
2018-11-03 16:24:26 +01:00
|
|
|
|
2019-02-13 16:54:02 +01:00
|
|
|
# Build arguments
|
|
|
|
ARG BUILD_VERSION=dev
|
2018-11-03 16:24:26 +01:00
|
|
|
|
|
|
|
# Labels
|
|
|
|
LABEL \
|
2019-02-13 16:54:02 +01:00
|
|
|
io.hass.name="ESPHome" \
|
2018-12-05 21:22:06 +01:00
|
|
|
io.hass.description="Manage and program ESP8266/ESP32 microcontrollers through YAML configuration files" \
|
2018-11-03 16:24:26 +01:00
|
|
|
io.hass.type="addon" \
|
2019-02-13 16:54:02 +01:00
|
|
|
io.hass.version=${BUILD_VERSION}
|