This commit is contained in:
2025-11-14 12:51:18 +01:00
parent 433a16ee0e
commit 869ca3a894
20 changed files with 1606 additions and 38 deletions

View File

@@ -12,12 +12,12 @@ COPY backend/config.py /app/config.py
# Copy crawler files (includes ollama_client.py)
COPY news_crawler/ /app/
# Make the scheduler executable
RUN chmod +x scheduled_crawler.py
# Make scripts executable
RUN chmod +x scheduled_crawler.py start.sh
# Set timezone to Berlin
ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Run the scheduled crawler
CMD ["python", "-u", "scheduled_crawler.py"]
# Run both scheduler and worker
CMD ["/app/start.sh"]