Spaces:
Build error

MUSTJAB-KING commited on
Commit
f10e07f
·
verified ·
1 Parent(s): 04f1024

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -12
Dockerfile CHANGED
@@ -1,25 +1,27 @@
1
  FROM python:3.10-slim
2
 
3
- WORKDIR /app
 
4
 
5
- # System dependencies install karein (ffmpeg video generation ke liye zaroori hai)
6
  RUN apt-get update && apt-get install -y \
7
- git \
8
- git-lfs \
9
  ffmpeg \
10
- libsm6 \
11
- libxext6 \
 
 
 
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
- # Python dependencies copy aur install karein
 
15
  COPY requirements.txt .
 
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
- # App ka baaki code copy karein
19
- COPY . .
20
 
21
- # Gradio default port expose karein
22
  EXPOSE 7860
23
 
24
- # Application run karein
25
- CMD ["python", "app.py"]
 
1
  FROM python:3.10-slim
2
 
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+ ENV PYTHONUNBUFFERED=1
5
 
6
+ # COLMAP, FFmpeg aur Open3D ke liye zaroori system libraries
7
  RUN apt-get update && apt-get install -y \
8
+ colmap \
 
9
  ffmpeg \
10
+ libgl1-mesa-glx \
11
+ libglib2.0-0 \
12
+ libgomp1 \
13
+ libxi6 \
14
+ libxrender1 \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
+ WORKDIR /app
18
+
19
  COPY requirements.txt .
20
+ RUN pip install --no-cache-dir --upgrade pip
21
  RUN pip install --no-cache-dir -r requirements.txt
22
 
23
+ COPY app.py .
 
24
 
 
25
  EXPOSE 7860
26
 
27
+ CMD ["python", "app.py"]