Akwbw commited on
Commit
7ff0e89
·
verified ·
1 Parent(s): af5c9c6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -1,16 +1,19 @@
1
  # Dockerfile
2
 
3
- # Base image jo Python aur ML ke liye zaroori libraries rakhti hai
4
  FROM python:3.10-slim
5
 
6
  # Working Directory set karein
7
  WORKDIR /app
8
 
9
- # 1. System dependencies install karein
10
- # libgl1-mesa-glx ki jagah sirf 'libgl1' install karein. Yeh zyada basic aur compatible package hai.
 
11
  RUN apt-get update && \
12
- apt-get install -y libgl1 && \
13
- rm -rf /var/lib/apt/lists/*
 
 
14
 
15
  # Dependencies file ko copy karein
16
  COPY requirements.txt .
 
1
  # Dockerfile
2
 
3
+ # Base image
4
  FROM python:3.10-slim
5
 
6
  # Working Directory set karein
7
  WORKDIR /app
8
 
9
+ # 1. Zaroori System dependencies install karein
10
+ # - libgl1: libGL.so.1 error ke liye (Pichla hal)
11
+ # - libgthread-2.0-0: libgthread-2.0.so.0 error ke liye (Maujooda hal)
12
  RUN apt-get update && \
13
+ apt-get install -y --no-install-recommends \
14
+ libgl1 \
15
+ libgthread-2.0-0 \
16
+ && rm -rf /var/lib/apt/lists/*
17
 
18
  # Dependencies file ko copy karein
19
  COPY requirements.txt .