saurabh091 commited on
Commit
2ac344c
·
verified ·
1 Parent(s): aa16e38

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -16
Dockerfile CHANGED
@@ -1,17 +1,18 @@
1
- # Use a base image with Python
2
- FROM python:3.9
3
-
4
- # Set the working directory
5
- WORKDIR /app
6
-
7
- # Copy all files to the container
8
- COPY . .
9
-
10
- # Install dependencies
11
- RUN pip install --no-cache-dir -r requirements.txt
12
-
13
- # Expose port (Hugging Face requires port 7860)
14
- EXPOSE 7860
15
-
16
- # Run Flask
 
17
  CMD ["python", "app.py"]
 
1
+ # Use a base image with Python
2
+ FROM python:3.9
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Copy all files to the container
8
+ COPY . .
9
+
10
+ # Install dependencies
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+ RUN apt-get update && apt-get install -y libgl1
13
+
14
+ # Expose port (Hugging Face requires port 7860)
15
+ EXPOSE 7860
16
+
17
+ # Run Flask
18
  CMD ["python", "app.py"]