Relay / Dockerfile
FredyHoundayi's picture
Update Dockerfile
6b05f47
Raw
History Blame Contribute Delete
566 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install system deps required by faster-whisper
RUN apt-get update && apt-get install -y \
ffmpeg \
git \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Avoid python buffering (important for logs in HF)
ENV PYTHONUNBUFFERED=1
# Install python deps
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Copy app
COPY . .
# Expose port
EXPOSE 7860
# Run the application
CMD ["sh", "-c", "uvicorn app:app --host 0.0.0.0 --port ${PORT}"]