wcaguar / Dockerfile
ngoldbla
Deploy to Hugging Face Space
af61aae
Raw History Blame Contribute Delete
666 Bytes
FROM nvidia/cuda:12.4.1-cudnn-runtime-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1
RUN apt-get update && apt-get install -y --no-install-recommends \
python3.11 python3.11-venv python3-pip \
ffmpeg git ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN python3.11 -m pip install --upgrade pip && python3.11 -m pip install -r /app/requirements.txt
COPY . /app
EXPOSE 7860
ENV GRADIO_SERVER_NAME=0.0.0.0 \
GRADIO_SERVER_PORT=7860
CMD ["python3.11", "app.py"]