This commit is contained in:
2025-11-11 14:22:21 +01:00
parent 1075a91eac
commit 760a458e66
4 changed files with 19 additions and 23 deletions

View File

@@ -2,17 +2,15 @@ FROM python:3.11-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
# Copy requirements first for better caching
COPY news_crawler/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy crawler files
COPY . .
# Copy backend config (needed for Config class)
COPY backend/config.py /app/config.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
# Copy crawler files (includes ollama_client.py)
COPY news_crawler/ /app/
# Make the scheduler executable
RUN chmod +x scheduled_crawler.py