-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (16 loc) · 875 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 TragiicRand2
LABEL org.opencontainers.image.description "Dockerized cronjob running the Steam Lancache prefilling tool, at container initial startup as well as at Midday and Midnight."
LABEL org.opencontainers.image.source https://github.com/TragiicRand2/Lancache-cron-prefill
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 0,12 * * * /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" ]