subbunanepalli commited on
Commit
b1f44e5
·
verified ·
1 Parent(s): f3c3921

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -2,11 +2,19 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
8
  COPY app.py .
9
  COPY models/ models/
10
 
11
  EXPOSE 7860
 
12
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # --- Install system dependencies ---
6
+ RUN apt-get update && apt-get install -y \
7
+ libgomp1 \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # --- Install Python dependencies ---
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
+ # --- Copy app and models ---
15
  COPY app.py .
16
  COPY models/ models/
17
 
18
  EXPOSE 7860
19
+
20
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]