Hello, blightmud-batmud-logger

This commit is contained in:
2026-05-15 14:38:26 +02:00
commit d86ec87c95
4 changed files with 86 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM alpine:3.19
# zstd for compression, tzdata so cron fires at correct local time
RUN apk add --no-cache zstd tzdata
COPY compress.sh /usr/local/bin/compress.sh
RUN chmod +x /usr/local/bin/compress.sh
# Install crontab: run compress at 02:00 every night
RUN echo "0 2 * * * /usr/local/bin/compress.sh > /proc/1/fd/1 2>&1" \
| crontab -
# crond -f: foreground (required for containers)
# crond -l 2: log level warning and above
CMD ["crond", "-f", "-l", "2"]