-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
23 lines (16 loc) · 844 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM tpill90/steam-lancache-prefill:latest
LABEL org.opencontainers.image.title "Steam Lancache Prefill cronjob"
LABEL org.opencontainers.image.authors Yimura
LABEL org.opencontainers.image.description "Dockerized cronjob running the Steam Lancache prefilling tool, at container initial startup as well as at 4am."
LABEL org.opencontainers.image.source https://github.com/Yimura/Lancache-Prefill-Cron
ENV FILE=/etc/cron.d/prefill-cron
RUN set -x &&\
apt update &&\
apt install -qq -y cron
RUN touch ${FILE} &&\
chmod 0644 ${FILE}
RUN echo "0 4 * * * /SteamPrefill prefill > /proc/1/fd/1 2>/proc/1/fd/2" >> ${FILE} &&\
echo "@reboot /SteamPrefill prefill > /proc/1/fd/1 2>/proc/1/fd/2" >> ${FILE} &&\
echo "# last line required for value cron file" >> ${FILE}
RUN crontab ${FILE}
ENTRYPOINT [ "cron", "-f", "-l", "1" ]