fixed
This commit is contained in:
@@ -2,16 +2,17 @@ FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
COPY requirements.txt .
|
||||
# Copy requirements first for better caching
|
||||
COPY news_sender/requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy sender files
|
||||
COPY . .
|
||||
# Copy backend dependencies (needed for tracking)
|
||||
COPY backend/services /app/backend/services
|
||||
COPY backend/database.py /app/backend/database.py
|
||||
COPY backend/config.py /app/backend/config.py
|
||||
|
||||
# Copy backend files (needed for tracking and config)
|
||||
COPY ../backend/services /app/backend/services
|
||||
COPY ../backend/.env /app/.env
|
||||
# Copy sender files
|
||||
COPY news_sender/ /app/
|
||||
|
||||
# Make the scheduler executable
|
||||
RUN chmod +x scheduled_sender.py
|
||||
|
||||
Reference in New Issue
Block a user