aryan365 commited on
Commit
8da3108
·
verified ·
1 Parent(s): 6400353

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -1
Dockerfile CHANGED
@@ -1,8 +1,15 @@
1
  # Use an official Python runtime
2
  FROM python:3.8-slim
 
 
3
  RUN apt-get update && apt-get install -y \
4
  libgl1-mesa-glx \
 
 
 
 
5
  && rm -rf /var/lib/apt/lists/*
 
6
  # Set the working directory
7
  WORKDIR /app
8
 
@@ -18,4 +25,4 @@ RUN pip install --no-cache-dir -r requirements.txt
18
  EXPOSE 5000
19
 
20
  # Command to run the app
21
- CMD ["python", "app.py"]
 
1
  # Use an official Python runtime
2
  FROM python:3.8-slim
3
+
4
+ # Install required system libraries
5
  RUN apt-get update && apt-get install -y \
6
  libgl1-mesa-glx \
7
+ libgthread-2.0-0 \
8
+ libglib2.0-0 \
9
+ libgtk2.0-0 \
10
+ libatlas-base-dev \
11
  && rm -rf /var/lib/apt/lists/*
12
+
13
  # Set the working directory
14
  WORKDIR /app
15
 
 
25
  EXPOSE 5000
26
 
27
  # Command to run the app
28
+ CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]