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