trans / Dockerfile
factorstudios's picture
Update Dockerfile
938c00b verified
raw
history blame contribute delete
525 Bytes
FROM python:3.12-slim
WORKDIR /app
# Install system dependencies for ffmpeg and audio processing
RUN apt-get update && apt-get install -y \
ffmpeg \
&& 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 transcription_server.py .
# Expose port 7860
EXPOSE 7860
# Run the application with uvicorn
CMD ["uvicorn", "transcription_server:app", "--host", "0.0.0.0", "--port", "7860"]