petter2025 commited on
Commit
f9906a0
·
verified ·
1 Parent(s): e607227

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -1,5 +1,8 @@
1
  FROM python:3.10-slim
2
 
 
 
 
3
  WORKDIR /app
4
 
5
  COPY requirements.txt .
@@ -7,5 +10,4 @@ RUN pip install --no-cache-dir -r requirements.txt
7
 
8
  COPY . .
9
 
10
- # Run uvicorn on port 7860 (Hugging Face's expected port)
11
  CMD ["uvicorn", "app:fastapi_app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10-slim
2
 
3
+ # Install git to allow pip to clone from GitHub
4
+ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
5
+
6
  WORKDIR /app
7
 
8
  COPY requirements.txt .
 
10
 
11
  COPY . .
12
 
 
13
  CMD ["uvicorn", "app:fastapi_app", "--host", "0.0.0.0", "--port", "7860"]