Spaces:
Build error
Build error
File size: 764 Bytes
06605e4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
FROM nvidia/cuda:12.3.1-devel-ubuntu22.04
# Install Python and basic utilities
RUN apt-get update && apt-get install -y \
python3.10 \
python3-pip \
git \
wget \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy application files
COPY . .
# Install Python dependencies
RUN pip3 install --no-cache-dir -r requirements.txt
# Install build dependencies
RUN pip3 install --no-cache-dir ninja pybind11
# Compile custom components
RUN cd /app/hy3dgen/texgen/custom_rasterizer && python3 setup.py install
RUN cd /app/hy3dgen/texgen/differentiable_renderer && bash compile_mesh_painter.sh
# Set environment variables
ENV NVIDIA_VISIBLE_DEVICES=all
ENV PYTHONPATH=/app
# Run the application
CMD ["python3", "hg_app.py"]
|