kyanmahajan commited on
Commit
f538f93
·
verified ·
1 Parent(s): 1d44411

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -2,20 +2,21 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install required system libraries for OpenCV
6
  RUN apt-get update && apt-get install -y \
 
7
  libgl1 \
8
  libglib2.0-0 \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- # Copy project files
12
  COPY . /app
13
 
14
- # Install dependencies
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
- # Expose port used by Flask or Gradio
18
  EXPOSE 7860
19
 
20
- # Start the Flask app
21
  CMD ["python", "app.py"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
7
+ git \
8
  libgl1 \
9
  libglib2.0-0 \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+ # Copy all files into the container
13
  COPY . /app
14
 
15
+ # Install Python dependencies
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
+ # Expose port for Flask/Gradio
19
  EXPOSE 7860
20
 
21
+ # Start the app
22
  CMD ["python", "app.py"]