ramedde commited on
Commit
f320c9a
·
verified ·
1 Parent(s): 499720f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -11
Dockerfile CHANGED
@@ -1,6 +1,5 @@
1
- FROM python:3.13
2
 
3
- # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
  git \
6
  git-lfs \
@@ -13,29 +12,23 @@ RUN apt-get update && apt-get install -y \
13
  && rm -rf /var/lib/apt/lists/* \
14
  && git lfs install
15
 
16
- # Create user and working directory
17
  RUN useradd -m -u 1000 user
 
18
  WORKDIR /app
19
 
20
- # Upgrade pip
21
- RUN pip install --no-cache-dir pip -U
22
 
23
- # Copy and install YOUR requirements first (with gradio 5.29.0)
24
  COPY requirements.txt .
25
  RUN pip install --no-cache-dir -r requirements.txt
26
 
27
- # Install HF Space runtime deps
28
  RUN pip install --no-cache-dir \
29
  "huggingface-hub>=0.30" \
30
  "hf-transfer>=0.1.4" \
31
- "protobuf<4" \
32
- "click<8.1" \
33
  uvicorn \
34
  websockets \
35
  spaces
36
 
37
- # Copy app files
38
- COPY --chown=user . /app
39
 
40
  USER user
41
 
 
1
+ FROM python:3.11-slim
2
 
 
3
  RUN apt-get update && apt-get install -y \
4
  git \
5
  git-lfs \
 
12
  && rm -rf /var/lib/apt/lists/* \
13
  && git lfs install
14
 
 
15
  RUN useradd -m -u 1000 user
16
+
17
  WORKDIR /app
18
 
19
+ RUN pip install --no-cache-dir --upgrade pip
 
20
 
 
21
  COPY requirements.txt .
22
  RUN pip install --no-cache-dir -r requirements.txt
23
 
 
24
  RUN pip install --no-cache-dir \
25
  "huggingface-hub>=0.30" \
26
  "hf-transfer>=0.1.4" \
 
 
27
  uvicorn \
28
  websockets \
29
  spaces
30
 
31
+ COPY --chown=user:user . /app
 
32
 
33
  USER user
34