diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -32,4 +32,6 @@ 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 \ && chmod 0644 /etc/cron.d/scraper RUN mkdir -p /app/data -CMD ["cron", "-f"] +COPY scripts/scraper-entrypoint.sh ./scripts/scraper-entrypoint.sh +RUN chmod +x scripts/scraper-entrypoint.sh +CMD ["sh", "scripts/scraper-entrypoint.sh"] |
