You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
420 B
17 lines
420 B
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"]
|
|
|