mac9087 commited on
Commit
c96524a
·
verified ·
1 Parent(s): 9f6509a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -6
Dockerfile CHANGED
@@ -36,15 +36,14 @@ RUN pip install --no-cache-dir -U pip && \
36
  # Download U^2-Net model file from Google Drive
37
  RUN gdown https://drive.google.com/uc?id=1ao1ovG1Qtx4b7EoskHXmi2E9rp5CHLcZ -O u2net.pth
38
 
39
- # Clone TripoSR repository and copy tsr module
40
- RUN git clone https://github.com/Vast-AI-Research/TripoSR.git /tmp/TripoSR && \
41
- cp -r /tmp/TripoSR/tsr /app/tsr && \
42
- rm -rf /tmp/TripoSR
43
-
44
- # Copy U^2-Net module and application code
45
  COPY u2net.py .
46
  COPY app.py .
47
 
 
 
 
48
  # Expose the port the app runs on (standard for Hugging Face Spaces)
49
  EXPOSE 7860
50
 
 
36
  # Download U^2-Net model file from Google Drive
37
  RUN gdown https://drive.google.com/uc?id=1ao1ovG1Qtx4b7EoskHXmi2E9rp5CHLcZ -O u2net.pth
38
 
39
+ # Copy tsr module, U^2-Net module, and application code
40
+ COPY tsr /app/tsr
 
 
 
 
41
  COPY u2net.py .
42
  COPY app.py .
43
 
44
+ # Cache bust to ensure fresh build
45
+ RUN echo "Build $(date)"
46
+
47
  # Expose the port the app runs on (standard for Hugging Face Spaces)
48
  EXPOSE 7860
49