This commit is contained in:
Kar
2025-06-14 20:43:59 +05:30
commit 788b2ea705
5 changed files with 64 additions and 0 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM python:3.10-slim
RUN apt-get update && apt-get install -y \
build-essential \
ffmpeg \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app and download model
COPY app ./app
COPY download-model.sh .
RUN chmod +x download-model.sh && ./download-model.sh
EXPOSE 4002
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "4002"]