pluto90 commited on
Commit
c074446
·
verified ·
1 Parent(s): 66b393f

Update Dockerfile

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