arsh1101 commited on
Commit
e6bfd88
·
verified ·
1 Parent(s): 0f0c87e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -2
Dockerfile CHANGED
@@ -1,6 +1,19 @@
1
  FROM python:3.9
 
 
2
  WORKDIR /app
 
 
 
 
 
3
  COPY . /app
4
- RUN pip install -r requirements.txt
 
 
 
 
5
  EXPOSE 8000
6
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
 
 
 
1
  FROM python:3.9
2
+
3
+ # Set working directory
4
  WORKDIR /app
5
+
6
+ # Install system dependencies for OpenCV
7
+ RUN apt-get update && apt-get install -y libgl1 && apt-get clean && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Copy application files
10
  COPY . /app
11
+
12
+ # Install Python dependencies
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Expose the port
16
  EXPOSE 8000
17
+
18
+ # Command to start Uvicorn
19
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]