thecodeworm commited on
Commit
3ea0866
·
verified ·
1 Parent(s): 3b45a54

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -7,8 +7,13 @@ WORKDIR /app
7
  RUN apt-get update && apt-get install -y \
8
  ffmpeg \
9
  git \
 
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
 
 
 
12
  # Copy requirements
13
  COPY requirements.txt .
14
 
@@ -22,4 +27,4 @@ COPY . .
22
  EXPOSE 7860
23
 
24
  # Run FastAPI with uvicorn
25
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
7
  RUN apt-get update && apt-get install -y \
8
  ffmpeg \
9
  git \
10
+ gcc \
11
+ g++ \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
+ # Upgrade pip and install build tools FIRST
15
+ RUN pip install --no-cache-dir --upgrade pip setuptools wheel cython
16
+
17
  # Copy requirements
18
  COPY requirements.txt .
19
 
 
27
  EXPOSE 7860
28
 
29
  # Run FastAPI with uvicorn
30
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]