addon-chrony/chrony/Dockerfile
2019-12-28 16:30:58 -05:00

39 lines
1.1 KiB
Docker

ARG BUILD_FROM=hassioaddons/base:6.0.1
# 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.5-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"