22 lines
378 B
Docker
22 lines
378 B
Docker
FROM python:3.10-slim
|
|
|
|
# Install dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
ffmpeg \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
# Install Python dependencies
|
|
COPY requirements.txt ./
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy service code
|
|
COPY app.py ./
|
|
|
|
# Copy model directory
|
|
COPY model/ ./model/
|
|
|
|
EXPOSE 5000
|
|
|
|
CMD ["python", "app.py"] |