JatsTheAIGen commited on
Commit
7eac98c
·
1 Parent(s): 291e38e

docs: Update Dockerfile with git dependency and ZeroGPU configuration notes

Browse files

- Add git to system dependencies (was missing)
- Add ZeroGPU API environment variable documentation
- Document both service account and per-user mode configuration options

Files changed (1) hide show
  1. Dockerfile +12 -1
Dockerfile CHANGED
@@ -2,7 +2,7 @@
2
  # This is the main Dockerfile used by HF Spaces when sdk: docker is set
3
  FROM python:3.10-slim
4
 
5
- # System dependencies
6
  RUN apt-get update && apt-get install -y \
7
  gcc \
8
  g++ \
@@ -10,6 +10,7 @@ RUN apt-get update && apt-get install -y \
10
  libopenblas-dev \
11
  libomp-dev \
12
  curl \
 
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
  # Set working directory
@@ -35,5 +36,15 @@ HEALTHCHECK --interval=30s --timeout=30s --start-period=60s --retries=3 \
35
 
36
  # Run main.py (starts both Gradio and Flask API)
37
  # main.py starts Flask API in background thread and launches Gradio
 
 
 
 
 
 
 
 
 
 
38
  CMD ["python", "main.py"]
39
 
 
2
  # This is the main Dockerfile used by HF Spaces when sdk: docker is set
3
  FROM python:3.10-slim
4
 
5
+ # System dependencies (ADD GIT HERE)
6
  RUN apt-get update && apt-get install -y \
7
  gcc \
8
  g++ \
 
10
  libopenblas-dev \
11
  libomp-dev \
12
  curl \
13
+ git \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
  # Set working directory
 
36
 
37
  # Run main.py (starts both Gradio and Flask API)
38
  # main.py starts Flask API in background thread and launches Gradio
39
+ #
40
+ # ZeroGPU API Configuration (optional):
41
+ # Set these environment variables in HF Spaces secrets for ZeroGPU integration:
42
+ # - USE_ZERO_GPU=true (enable ZeroGPU API)
43
+ # - ZERO_GPU_API_URL=http://your-pod-ip:8000
44
+ # - ZERO_GPU_EMAIL=service@example.com (for service account mode)
45
+ # - ZERO_GPU_PASSWORD=your-password (for service account mode)
46
+ # - ZERO_GPU_PER_USER_MODE=true (for per-user mode, optional)
47
+ # - ZERO_GPU_ADMIN_EMAIL=admin@example.com (for per-user mode)
48
+ # - ZERO_GPU_ADMIN_PASSWORD=admin-password (for per-user mode)
49
  CMD ["python", "main.py"]
50