PrernaKu commited on
Commit
3d0e308
·
verified ·
1 Parent(s): c2dd972

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -2
Dockerfile CHANGED
@@ -1,6 +1,15 @@
 
1
  FROM python:3.11-slim
2
- WORKDIR /app
3
- RUN pip install flask groq pandas requests
 
 
 
 
 
4
  COPY . .
 
 
5
  EXPOSE 7860
 
6
  CMD ["python", "app.py"]
 
1
+ Dockerfile
2
  FROM python:3.11-slim
3
+
4
+ WORKDIR /code
5
+
6
+ COPY ./requirements.txt /code/requirements.txt
7
+
8
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
9
+
10
  COPY . .
11
+
12
+ # Hugging Face exposes port 7860
13
  EXPOSE 7860
14
+
15
  CMD ["python", "app.py"]