Whisper-api / Dockerfile
NitinBot001's picture
Upload 3 files
b3cef24 verified
raw
history blame
493 Bytes
# Use official Python image
FROM python:3.10-slim
# Install dependencies for ffmpeg and WhisperX
RUN apt-get update && \
apt-get install -y git ffmpeg libsndfile1 && \
rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app code
COPY . .
# Expose port
EXPOSE 8000
# Run the FastAPI app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]