TALKSHOW / Dockerfile
sshravani's picture
essential files only'
d414280
raw
history blame contribute delete
961 Bytes
FROM pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime
# Install system dependencies
RUN apt-get update && apt-get install -y \
ffmpeg \
libgl1-mesa-glx \
git \
wget \
unzip \
libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
# Set up a non-root user for Hugging Face Space compatibility
RUN useradd -m -u 1000 user
USER user
WORKDIR /home/user
# Copy project files
COPY --chown=user requirements.txt .
COPY --chown=user . .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Create necessary directories
RUN mkdir -p visualise/smplx_model \
&& mkdir -p experiments \
&& mkdir -p visualise/video/body-pixel \
&& mkdir -p visualise/video/body-pixel2 \
&& mkdir -p demo_audio
# Set environment variables for GPU and Python
ENV PYTHONUNBUFFERED=1
ENV NVIDIA_VISIBLE_DEVICES=all
ENV NVIDIA_DRIVER_CAPABILITIES=all
# Expose Gradio port
EXPOSE 7860
# Default command
CMD ["python", "app.py"]