FROM python:3.11-slim WORKDIR /app # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy crawler files COPY . . # 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"]