Spaces:
Sleeping
Sleeping
File size: 599 Bytes
4cafbd1 6dfe658 4cafbd1 6dfe658 4cafbd1 c745dd7 4cafbd1 6dfe658 774eabd 4cafbd1 6dfe658 774eabd 4cafbd1 6dfe658 d02dd4e f419b81 6dfe658 663edf2 6dfe658 8b91b10 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
poppler-utils \
libmagic1 \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY . .
# Set Python path
ENV PYTHONPATH=/app
# Create upload directory
RUN mkdir -p /app/uploads && \
chmod -R a+rwx /app/uploads
EXPOSE 8000
# Commande ABSOLUMENT critique - doit correspondre exactement
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] |