This commit is contained in:
2025-11-11 14:09:21 +01:00
parent bcd0a10576
commit 1075a91eac
57 changed files with 5598 additions and 1366 deletions

View File

@@ -6,8 +6,20 @@ WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy crawler service
COPY crawler_service.py .
# Copy crawler files
COPY . .
# Run crawler
CMD ["python", "crawler_service.py"]
# Copy backend config files (needed for Config class)
COPY ../backend/config.py /app/config.py
COPY ../backend/ollama_client.py /app/ollama_client.py
COPY ../backend/.env /app/.env
# Make the scheduler executable
RUN chmod +x scheduled_crawler.py
# 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"]