dragxd commited on
Commit
9797612
·
verified ·
1 Parent(s): 1274ac5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -1
Dockerfile CHANGED
@@ -1,8 +1,16 @@
1
  FROM python:3.10-slim
2
 
3
  WORKDIR /app
 
 
 
 
 
4
  COPY requirements.txt .
5
  RUN pip install --no-cache-dir -r requirements.txt
 
 
6
  COPY app.py .
7
 
8
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
  FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
+
5
+ # Install git
6
+ RUN apt-get update && apt-get install -y git && apt-get clean
7
+
8
+ # Install Python dependencies
9
  COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # Copy your app code
13
  COPY app.py .
14
 
15
+ # Start your app
16
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]