summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 0bc37da..9eab66d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -37,7 +37,10 @@ COPY scripts ./scripts
COPY app ./app
COPY tsconfig.json ./
RUN apt-get update && apt-get install -y cron && rm -rf /var/lib/apt/lists/*
-RUN echo '0 */6 * * * root cd /app && DB_PATH=/app/data/events.db node --import tsx/esm scripts/scrape.ts >> /app/data/scraper.log 2>&1' > /etc/cron.d/scraper \
+RUN printf '%s\n%s\n' \
+ '0 */6 * * * root cd /app && DB_PATH=/app/data/events.db node --import tsx/esm scripts/scrape.ts >> /app/data/scraper.log 2>&1' \
+ '0 23 * * * root cd /app && DB_PATH=/app/data/events.db node --import tsx/esm scripts/send-recap.ts >> /app/data/recap.log 2>&1' \
+ > /etc/cron.d/scraper \
&& chmod 0644 /etc/cron.d/scraper
RUN mkdir -p /app/data
COPY scripts/scraper-entrypoint.sh ./scripts/scraper-entrypoint.sh