Whisper-api / Dockerfile
NitinBot001's picture
Update Dockerfile
a99301b 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 7860
# Run the FastAPI app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]