mirror of
https://github.com/hassio-addons/addon-chrony.git
synced 2025-05-04 11:11:28 +00:00
39 lines
1.1 KiB
Docker
39 lines
1.1 KiB
Docker
ARG BUILD_FROM=hassioaddons/base:3.0.0
|
|
# hadolint ignore=DL3006
|
|
FROM ${BUILD_FROM}
|
|
|
|
# Set shell
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
|
|
# Setup base
|
|
# hadolint ignore=DL3003
|
|
RUN \
|
|
apk add --no-cache \
|
|
chrony=3.4-r1
|
|
|
|
# Copy root filesystem
|
|
COPY rootfs /
|
|
|
|
# Build arguments
|
|
ARG BUILD_ARCH
|
|
ARG BUILD_DATE
|
|
ARG BUILD_REF
|
|
ARG BUILD_VERSION
|
|
|
|
# Labels
|
|
LABEL \
|
|
io.hass.name="chrony" \
|
|
io.hass.description="chrony NTP Server" \
|
|
io.hass.arch="${BUILD_ARCH}" \
|
|
io.hass.type="addon" \
|
|
io.hass.version=${BUILD_VERSION} \
|
|
maintainer="Paul Sinclair <hello@addons.community>" \
|
|
org.label-schema.description="chrony NTP Server" \
|
|
org.label-schema.build-date=${BUILD_DATE} \
|
|
org.label-schema.name="chrony" \
|
|
org.label-schema.schema-version="1.0" \
|
|
org.label-schema.url="https://github.com/hassio-addons/repository" \
|
|
org.label-schema.usage="https://github.com/hassio-addons/addon-chrony/tree/master/README.md" \
|
|
org.label-schema.vcs-ref=${BUILD_REF} \
|
|
org.label-schema.vcs-url="https://github.com/hassio-addons/addon-chrony" \
|
|
org.label-schema.vendor="Community Hass.io Addons"
|