Yt / Dockerfile
Waikul's picture
Update Dockerfile
7b6c230 verified
raw
history blame contribute delete
394 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg ca-certificates && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt ./
RUN python -m pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY . /app
ENV PORT=7860
EXPOSE 7860
CMD ["sh", "-c", "uvicorn app:app --host 0.0.0.0 --port ${PORT}"]