10 lines
540 B
Docker
10 lines
540 B
Docker
# Minimal chrony NTP server for the lab boot LAN. Diskless workstations get this
|
|
# host as their time source via DHCP option 42 (dnsmasq), so they never reach the
|
|
# public NTP pool (no workstation egress). Config is bind-mounted from
|
|
# chrony.conf in docker-compose.yml. Build our own so the version is pinned.
|
|
FROM alpine:3.20
|
|
RUN apk add --no-cache chrony
|
|
# -d: run in the foreground (don't daemonise) so the container stays up and logs
|
|
# to stdout for `docker compose logs`.
|
|
ENTRYPOINT ["chronyd", "-d", "-f", "/etc/chrony/chrony.conf"]
|