2019-03-31 12:25:44 +02:00
|
|
|
ARG BUILD_FROM=esphome/esphome-hassio-base-amd64:1.4.3
|
2018-11-03 16:24:26 +01:00
|
|
|
FROM ${BUILD_FROM}
|
|
|
|
|
2019-02-13 16:54:02 +01:00
|
|
|
# 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}
|