Files
youtube-auto-dub/Dockerfile
2026-05-22 20:24:58 +01:00

25 lines
497 B
Docker

FROM python:3.10-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
GRADIO_SERVER_NAME=0.0.0.0 \
PORT=7860
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends ffmpeg ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p .cache temp output logs/gradio
EXPOSE 7860
CMD ["python", "web_app.py"]