This commit is contained in:
2023-05-01 17:15:28 +02:00
parent b7886399ce
commit f45a9ae740
6 changed files with 15 additions and 67 deletions

View File

@@ -10,8 +10,6 @@ ARG BUILD_REF
ARG BUILD_REPOSITORY
ARG BUILD_VERSION
ARG TELEGRAF_VERSION
ARG BASHIO_VERSION
ARG TEMPIO_VERSION
ARG HAPROXY_VERSION
ARG HAPROXY_SHA256
@@ -38,36 +36,6 @@ SHELL ["/bin/ash", "-o", "pipefail", "-c"]
USER root
RUN \
set -o pipefail && \
apk add --no-cache --virtual .build-dependencies \
tar \
xz && \
apk add --no-cache \
libcrypto1.1 \
libssl1.1 \
musl-utils \
musl && \
apk add --no-cache \
bash \
curl \
jq \
tzdata && \
curl -J -L -o /tmp/bashio.tar.gz \
"https://github.com/hassio-addons/bashio/archive/${BASHIO_VERSION}.tar.gz" && \
mkdir /tmp/bashio && \
tar zxvf \
/tmp/bashio.tar.gz \
--strip 1 -C /tmp/bashio && \
mv /tmp/bashio/lib /usr/lib/bashio && \
ln -s /usr/lib/bashio/bashio /usr/bin/bashio && \
curl -L -s -o /usr/bin/tempio \
"https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}" && \
chmod a+x /usr/bin/tempio && \
apk del --no-cache --purge .build-dependencies && \
rm -f -r \
/tmp/*
RUN set -eux; \
addgroup --gid 99 --system haproxy; \
adduser \