This commit is contained in:
2023-08-25 03:48:12 +02:00
parent 914507cb52
commit 4217b38853
2 changed files with 43 additions and 61 deletions

View File

@@ -3,6 +3,12 @@ FROM ${BUILD_FROM}
# Build arguments
ARG BUILD_ARCH
ARG BUILD_DATE
ARG BUILD_DESCRIPTION
ARG BUILD_NAME
ARG BUILD_REF
ARG BUILD_REPOSITORY
ARG BUILD_VERSION
ARG YQ_VERSION
ARG PROMTAIL_VERSION
@@ -15,7 +21,6 @@ RUN set -eux; \
unzip \
; \
update-ca-certificates; \
\
case "${BUILD_ARCH}" in \
amd64) BINARCH='amd64' ;; \
armhf) BINARCH='arm' ;; \
@@ -37,24 +42,14 @@ RUN set -eux; \
unzip /tmp/promtail.zip -d /usr/bin; \
mv /usr/bin/promtail-linux-${BINARCH} /usr/bin/promtail; \
chmod +x /usr/bin/promtail; \
rm /tmp/promtail.zip
rm /tmp/promtail.zip; \
mkdir -p /data/promtail
COPY rootfs /
WORKDIR /data/promtail
COPY s6-overlay /package/admin/s6-overlay-3.1.5.0/
# Build arguments
ARG BUILD_ARCH
ARG BUILD_DATE
ARG BUILD_DESCRIPTION
ARG BUILD_NAME
ARG BUILD_REF
ARG BUILD_REPOSITORY
ARG BUILD_VERSION
USER root
# Labels
LABEL \
io.hass.name="${BUILD_NAME}" \
@@ -62,4 +57,12 @@ LABEL \
io.hass.arch="${BUILD_ARCH}" \
io.hass.type="addon" \
io.hass.version=${BUILD_VERSION} \
maintainer="fbonelle"
maintainer="fbonelle" \
org.opencontainers.image.title="${BUILD_NAME}" \
org.opencontainers.image.description="${BUILD_DESCRIPTION}" \
org.opencontainers.image.vendor="fbonelle's addons" \
org.opencontainers.image.authors="fbonelle" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.revision=${BUILD_REF} \
org.opencontainers.image.version=${BUILD_VERSION}