Add Docker image support

This commit is contained in:
2026-05-22 20:24:58 +01:00
parent f4f1236777
commit 82d5c3c173
5 changed files with 80 additions and 1 deletions

24
Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
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"]