ARG ALPINE_VERSION=latest FROM alpine:${ALPINE_VERSION} ARG APK_MIRROR=dl-cdn.alpinelinux.org COPY motd.run /etc/periodic/hourly/ RUN sed -i "s/dl-cdn.alpinelinux.org/${APK_MIRROR}/g" /etc/apk/repositories && \ apk add --no-cache --no-progress tzdata jq curl && \ chmod +x /etc/periodic/hourly/motd.run && \ rm -rf /tmp/* VOLUME ["/mnt/motd"] ENV TZ=Asia/Shanghai ENTRYPOINT ["crond", "-f", "-d", "8"]