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