vwxyzarii commited on
Commit
1950a2e
·
verified ·
1 Parent(s): 40f0782

Update Dockerfile

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