Surajnitp commited on
Commit
01e7f9c
·
verified ·
1 Parent(s): af1ac63

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -6
Dockerfile CHANGED
@@ -1,23 +1,18 @@
1
  FROM python:3.10-slim
2
 
3
- # Set working directory
4
  WORKDIR /app
5
 
6
- # Install system dependencies
7
  RUN apt-get update && apt-get install -y \
8
  git \
9
  build-essential \
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
- # Copy requirements first (for better caching)
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
- # Copy the rest of the application
17
  COPY . .
18
 
19
- # Expose the port Gradio runs on
20
  EXPOSE 7860
21
 
22
- # Run the app
23
  CMD ["python", "app.py"]
 
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
  git \
7
  build-essential \
8
+ libgl1 \
9
  && rm -rf /var/lib/apt/lists/*
10
 
 
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
 
14
  COPY . .
15
 
 
16
  EXPOSE 7860
17
 
 
18
  CMD ["python", "app.py"]