Mahmous commited on
Commit
14cfc05
·
verified ·
1 Parent(s): 1084bce

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -2
Dockerfile CHANGED
@@ -1,5 +1,18 @@
 
1
  FROM python:3.10-slim
 
 
2
  WORKDIR /app
3
- COPY /app
4
- RUN pip install -r requirements.txt
 
 
 
 
 
 
 
 
 
5
  CMD ["python", "api.py"]
 
 
1
+ # Use lightweight Python
2
  FROM python:3.10-slim
3
+
4
+ # Set working directory
5
  WORKDIR /app
6
+
7
+ # Copy everything
8
+ COPY . .
9
+
10
+ # Install dependencies
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Expose Hugging Face default port
14
+ EXPOSE 7860
15
+
16
+ # Run Flask app
17
  CMD ["python", "api.py"]
18
+