esphome (production)

Published 2024-11-17 15:00:06 -05:00 by colin

Installation

docker pull git.nixc.us/nixius/esphome:production
sha256:5680ef053f026854c65c19e92178df5c626ed7c7f833e9d5128cedbf5bfdfce1

Image Layers

ADD file:d261a6f6921593f1e0b3f472ab1b1822e2c6deb0b369200f0b3370556bfad017 in /
CMD ["bash"]
ARG TARGETARCH=amd64
ARG TARGETVARIANT=
RUN |2 TARGETARCH=amd64 TARGETVARIANT= /bin/sh -c apt-get update && apt-get install -y --no-install-recommends python3-pip=23.0.1+dfsg-1 python3-setuptools=66.1.1-1 python3-venv=3.11.2-1+b1 python3-wheel=0.38.4-2 iputils-ping=3:20221126-1 git=1:2.39.5-0+deb12u1 curl=7.88.1-10+deb12u7 openssh-client=1:9.2p1-2+deb12u3 python3-cffi=1.15.1-5 libcairo2=1.16.0-7 libmagic1=1:5.44-3 patch=2.7.6-7 && ( ( [ "$TARGETARCH$TARGETVARIANT" = "armv7" ] && apt-get install -y --no-install-recommends build-essential=12.9 python3-dev=3.11.2-1+b1 zlib1g-dev=1:1.2.13.dfsg-1 libjpeg-dev=1:2.1.5-2 libfreetype-dev=2.12.1+dfsg-5+deb12u3 libssl-dev=3.0.14-1~deb12u2 libffi-dev=3.4.4-1 libopenjp2-7=2.5.0-2 libtiff6=4.5.0-6+deb12u1 cargo=0.66.0+ds1-1 pkg-config=1.8.1-1 gcc-arm-linux-gnueabihf=4:12.2.0-3 ) || [ "$TARGETARCH$TARGETVARIANT" != "armv7" ] ) && rm -rf /tmp/* /var/{cache,log}/* /var/lib/apt/lists/* # buildkit
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 PLATFORMIO_GLOBALLIB_DIR=/piolibs
RUN |2 TARGETARCH=amd64 TARGETVARIANT= /bin/sh -c if [ "$TARGETARCH$TARGETVARIANT" = "armv7" ]; then ln -s /lib/arm-linux-gnueabihf/ld-linux-armhf.so.3 /lib/ld-linux.so.3; fi # buildkit
RUN |2 TARGETARCH=amd64 TARGETVARIANT= /bin/sh -c if [ "$TARGETARCH$TARGETVARIANT" = "armv7" ]; then export PIP_EXTRA_INDEX_URL="https://www.piwheels.org/simple"; fi; pip3 install --break-system-packages --no-cache-dir platformio==6.1.15 && platformio settings set enable_telemetry No && platformio settings set check_platformio_interval 1000000 && mkdir -p /piolibs # buildkit
COPY requirements.txt requirements_optional.txt / # buildkit
RUN |2 TARGETARCH=amd64 TARGETVARIANT= /bin/sh -c if [ "$TARGETARCH$TARGETVARIANT" = "armv7" ]; then curl -L https://www.piwheels.org/cp311/cryptography-43.0.0-cp37-abi3-linux_armv7l.whl -o /tmp/cryptography-43.0.0-cp37-abi3-linux_armv7l.whl && pip3 install --break-system-packages --no-cache-dir /tmp/cryptography-43.0.0-cp37-abi3-linux_armv7l.whl && rm /tmp/cryptography-43.0.0-cp37-abi3-linux_armv7l.whl && export PIP_EXTRA_INDEX_URL="https://www.piwheels.org/simple"; fi; CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse CARGO_HOME=/root/.cargo pip3 install --break-system-packages --no-cache-dir -r /requirements.txt -r /requirements_optional.txt # buildkit
COPY script/platformio_install_deps.py platformio.ini / # buildkit
RUN |2 TARGETARCH=amd64 TARGETVARIANT= /bin/sh -c /platformio_install_deps.py /platformio.ini --libraries # buildkit
RUN |2 TARGETARCH=amd64 TARGETVARIANT= /bin/sh -c git config --system --add safe.directory '*' # buildkit
COPY . /esphome # buildkit
RUN |2 TARGETARCH=amd64 TARGETVARIANT= /bin/sh -c if [ "$TARGETARCH$TARGETVARIANT" = "armv7" ]; then export PIP_EXTRA_INDEX_URL="https://www.piwheels.org/simple"; fi; pip3 install --break-system-packages --no-cache-dir -e /esphome # buildkit
ENV USERNAME= PASSWORD=
EXPOSE map[6052/tcp:{}]
HEALTHCHECK &{["CMD-SHELL" "curl --fail http://localhost:6052/version -A \"HealthCheck\" || exit 1"] "30s" "30s" "0s" "0s" '\x00'}
COPY docker/docker_entrypoint.sh /entrypoint.sh # buildkit
VOLUME [/config]
WORKDIR /config
ENTRYPOINT ["/entrypoint.sh"]
CMD ["dashboard" "/config"]

Labels

Key Value
com.docker.compose.project esphome
com.docker.compose.service esphome
com.docker.compose.version 2.28.1
Details
Container
2024-11-17 15:00:06 -05:00
8
OCI / Docker
linux/amd64
188 MiB
Versions (2) View all
production 2024-11-17
staging 2024-11-17