28 lines
506 B
Docker
28 lines
506 B
Docker
FROM python:3.11-slim
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
ffmpeg \
|
|
curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy requirements
|
|
COPY requirements.txt .
|
|
|
|
# Install Python dependencies
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy application files
|
|
COPY app.py .
|
|
COPY model/ model/
|
|
|
|
# Expose port
|
|
EXPOSE 5082
|
|
|
|
# Run FastAPI app
|
|
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5082"]
|