THED2 commited on
Commit
e336c20
·
verified ·
1 Parent(s): 5ee1145

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -1,11 +1,11 @@
1
- FROM python:3.9
2
 
3
- WORKDIR /code
 
4
 
5
- COPY ./requirements.txt /code/requirements.txt
 
6
  RUN pip install --no-cache-dir -r requirements.txt
7
-
8
  COPY . .
9
 
10
- # Flask માટે એન્ટ્રીપોઈન્ટ
11
- CMD ["python", "app.py"]
 
1
+ FROM python:3.11-slim
2
 
3
+ # Git ઇન્સ્ટોલ કરો કારણ કે smolagents ગિટથી આવે છે
4
+ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
5
 
6
+ WORKDIR /app
7
+ COPY requirements.txt .
8
  RUN pip install --no-cache-dir -r requirements.txt
 
9
  COPY . .
10
 
11
+ CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:7860", "app:app"]