pranit144 commited on
Commit
0b3071b
·
verified ·
1 Parent(s): 664bbee

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -8
Dockerfile CHANGED
@@ -1,17 +1,17 @@
1
  FROM python:3.9-slim
2
 
 
 
 
 
 
 
3
  WORKDIR /app
4
 
5
  COPY requirements.txt .
 
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
  COPY . .
9
 
10
- # Create directory structure
11
- RUN mkdir -p static/images
12
-
13
- # Expose the port the app runs on
14
- EXPOSE 7860
15
-
16
- # Command to run the app
17
- CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
 
1
  FROM python:3.9-slim
2
 
3
+ # Install dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ libgl1 \
6
+ libglib2.0-0 \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
  WORKDIR /app
10
 
11
  COPY requirements.txt .
12
+
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
  COPY . .
16
 
17
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]