sugitora's picture
Create Dockerfile
7f58a78 verified
raw
history blame contribute delete
421 Bytes
FROM python:3.10-slim-bookworm
ENV DEBIAN_FRONTEND=noninteractive \
PIP_NO_CACHE_DIR=1 \
GRADIO_SERVER_NAME=0.0.0.0 \
GRADIO_SERVER_PORT=7860
WORKDIR /app
RUN apt-get update && apt-get install -y \
ffmpeg git \
libgl1 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
COPY app.py .
EXPOSE 7860
CMD ["python", "app.py"]