benkada commited on
Commit
f7e9534
·
verified ·
1 Parent(s): 4835946

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -10
Dockerfile CHANGED
@@ -1,18 +1,16 @@
1
- FROM python:3.9-slim
2
 
3
- WORKDIR /app
 
4
 
5
- # Create and set cache directory for Hugging Face
6
- RUN mkdir -p /app/cache && chown -R 1000:1000 /app/cache
7
- ENV HF_HOME=/app/cache
8
 
9
  # Install dependencies
10
- COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Copy application code
14
  COPY . .
15
 
16
- # Expose port and run
17
- EXPOSE 8000
18
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
 
1
+ FROM python:3.10-slim
2
 
3
+ # Install basic packages
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
 
9
  # Install dependencies
 
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
 
12
  COPY . .
13
 
14
+ EXPOSE 7860
15
+
16
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]