Spaces:
Running
Running
File size: 528 Bytes
b61bb63 ca21c7f b61bb63 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | FROM python:3.11-slim
# Install system dependencies for AI processing
RUN apt-get update && apt-get install -y ffmpeg libsm6 libxext6 libmagic1 && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy backend requirements
COPY backend/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy backend code
COPY backend /app/backend
WORKDIR /app/backend
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Make script executable
RUN chmod +x start.sh
# Start both Celery and FastAPI
CMD ["bash", "start.sh"]
|