ckc99u commited on
Commit
5f2933a
·
verified ·
1 Parent(s): eab1496

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -15
Dockerfile CHANGED
@@ -1,10 +1,8 @@
1
  FROM python:3.9-slim
2
 
3
- # Set working directory
4
  WORKDIR /app
5
 
6
- # Install system dependencies for Open3D, Trimesh, and binvox
7
- # Note: libgl1-mesa-glx is replaced with libgl1 in Debian Trixie
8
  RUN apt-get update && apt-get install -y \
9
  build-essential \
10
  git \
@@ -18,32 +16,28 @@ RUN apt-get update && apt-get install -y \
18
  libice6 \
19
  && rm -rf /var/lib/apt/lists/*
20
 
21
- # Download and install binvox for voxelization
22
  RUN wget -O /usr/local/bin/binvox http://www.patrickmin.com/binvox/linux64/binvox && \
23
  chmod +x /usr/local/bin/binvox
24
 
25
- # Copy requirements and install Python dependencies
26
  COPY requirements.txt .
27
  RUN pip install --no-cache-dir --upgrade pip && \
28
  pip install --no-cache-dir -r requirements.txt
29
 
30
- # Copy RigNet folder with checkpoints and models
31
- COPY RigNet/ /app/RigNet/
32
-
33
  # Copy application code
34
  COPY app.py .
35
 
36
- # Create temporary directory for processing
37
  RUN mkdir -p /app/temp
38
 
39
- # Expose Gradio default port
40
  EXPOSE 7860
41
 
42
- # Set environment variables
43
  ENV PYTHONUNBUFFERED=1
44
  ENV GRADIO_SERVER_NAME="0.0.0.0"
45
  ENV GRADIO_SERVER_PORT=7860
46
- ENV GRADIO_ANALYTICS_ENABLED=False
47
- ENV GRADIO_DEBUG=1
48
- # Run the application
49
- CMD ["python","-u", "app.py"]
 
1
  FROM python:3.9-slim
2
 
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies
 
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  git \
 
16
  libice6 \
17
  && rm -rf /var/lib/apt/lists/*
18
 
19
+ # Download binvox
20
  RUN wget -O /usr/local/bin/binvox http://www.patrickmin.com/binvox/linux64/binvox && \
21
  chmod +x /usr/local/bin/binvox
22
 
23
+ # Install Python dependencies
24
  COPY requirements.txt .
25
  RUN pip install --no-cache-dir --upgrade pip && \
26
  pip install --no-cache-dir -r requirements.txt
27
 
 
 
 
28
  # Copy application code
29
  COPY app.py .
30
 
31
+ # Create temp directory
32
  RUN mkdir -p /app/temp
33
 
34
+ # Expose port
35
  EXPOSE 7860
36
 
37
+ # Environment variables
38
  ENV PYTHONUNBUFFERED=1
39
  ENV GRADIO_SERVER_NAME="0.0.0.0"
40
  ENV GRADIO_SERVER_PORT=7860
41
+
42
+ # Run application
43
+ CMD ["python", "-u", "app.py"]