update
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user