Spaces:
Sleeping
Sleeping
k22056537 commited on
Commit ·
8eeba10
1
Parent(s): ef3b36a
fix: add dockerignore, restore git dep, trim requirements
Browse files- Added .dockerignore to exclude .git (516MB), node_modules, dist
- Restored git in apt (needed for pip face_detection package)
- Removed torch/torchvision from requirements.txt (already installed
separately with CPU index to avoid pulling 2.5GB CUDA build)
- Dropped clearml, pytest from prod requirements
- .dockerignore +14 -0
- Dockerfile +1 -1
- requirements.txt +0 -5
.dockerignore
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.git
|
| 2 |
+
node_modules
|
| 3 |
+
dist
|
| 4 |
+
__pycache__
|
| 5 |
+
*.pyc
|
| 6 |
+
.env
|
| 7 |
+
.venv
|
| 8 |
+
data/
|
| 9 |
+
*.db
|
| 10 |
+
.gitattributes
|
| 11 |
+
.gitignore
|
| 12 |
+
.eslintrc*
|
| 13 |
+
*.md
|
| 14 |
+
!README.md
|
Dockerfile
CHANGED
|
@@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 11 |
libglib2.0-0 libsm6 libxrender1 libxext6 libxcb1 libgl1 libgomp1 \
|
| 12 |
ffmpeg libavcodec-dev libavformat-dev libavutil-dev libswscale-dev \
|
| 13 |
libavdevice-dev libopus-dev libvpx-dev libsrtp2-dev \
|
| 14 |
-
build-essential curl \
|
| 15 |
&& rm -rf /var/lib/apt/lists/*
|
| 16 |
|
| 17 |
RUN pip install --no-cache-dir torch torchvision --index-url https://download.pytorch.org/whl/cpu
|
|
|
|
| 11 |
libglib2.0-0 libsm6 libxrender1 libxext6 libxcb1 libgl1 libgomp1 \
|
| 12 |
ffmpeg libavcodec-dev libavformat-dev libavutil-dev libswscale-dev \
|
| 13 |
libavdevice-dev libopus-dev libvpx-dev libsrtp2-dev \
|
| 14 |
+
build-essential git curl \
|
| 15 |
&& rm -rf /var/lib/apt/lists/*
|
| 16 |
|
| 17 |
RUN pip install --no-cache-dir torch torchvision --index-url https://download.pytorch.org/whl/cpu
|
requirements.txt
CHANGED
|
@@ -8,8 +8,6 @@ opencv-contrib-python>=4.8.0
|
|
| 8 |
numpy>=1.24.0
|
| 9 |
scikit-learn>=1.2.0
|
| 10 |
joblib>=1.2.0
|
| 11 |
-
torch>=2.0.0
|
| 12 |
-
torchvision>=0.15.0
|
| 13 |
fastapi>=0.104.0
|
| 14 |
uvicorn[standard]>=0.24.0
|
| 15 |
httpx>=0.27.0
|
|
@@ -17,8 +15,5 @@ aiosqlite>=0.19.0
|
|
| 17 |
psutil>=5.9.0
|
| 18 |
pydantic>=2.0.0
|
| 19 |
xgboost>=2.0.0
|
| 20 |
-
clearml>=2.0.2
|
| 21 |
-
pytest>=9.0.0
|
| 22 |
-
pytest-cov>=5.0.0
|
| 23 |
face_detection @ git+https://github.com/elliottzheng/face-detection
|
| 24 |
gdown>=5.0.0
|
|
|
|
| 8 |
numpy>=1.24.0
|
| 9 |
scikit-learn>=1.2.0
|
| 10 |
joblib>=1.2.0
|
|
|
|
|
|
|
| 11 |
fastapi>=0.104.0
|
| 12 |
uvicorn[standard]>=0.24.0
|
| 13 |
httpx>=0.27.0
|
|
|
|
| 15 |
psutil>=5.9.0
|
| 16 |
pydantic>=2.0.0
|
| 17 |
xgboost>=2.0.0
|
|
|
|
|
|
|
|
|
|
| 18 |
face_detection @ git+https://github.com/elliottzheng/face-detection
|
| 19 |
gdown>=5.0.0
|