Spaces:
Runtime error
Runtime error
Commit ·
d482228
1
Parent(s): d21c846
Optimize build: Reduce image size and skip slow AI engine compilation to fix timeout
Browse files- .dockerignore +18 -0
- Dockerfile +6 -4
- requirements.txt +10 -36
.dockerignore
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
node_modules/
|
| 2 |
+
ml_models/
|
| 3 |
+
venv/
|
| 4 |
+
.git/
|
| 5 |
+
.npm_cache/
|
| 6 |
+
nltk_data/
|
| 7 |
+
*.log
|
| 8 |
+
firepit-log.txt
|
| 9 |
+
stripe
|
| 10 |
+
dashboard/node_modules/
|
| 11 |
+
dashboard/dist/
|
| 12 |
+
src/
|
| 13 |
+
public/
|
| 14 |
+
tsconfig.json
|
| 15 |
+
tsconfig.node.json
|
| 16 |
+
vite.config.ts
|
| 17 |
+
package.json
|
| 18 |
+
package-lock.json
|
Dockerfile
CHANGED
|
@@ -15,21 +15,23 @@ ENV PATH="/home/user/.local/bin:${PATH}"
|
|
| 15 |
# Set the working directory
|
| 16 |
WORKDIR $HOME/app
|
| 17 |
|
| 18 |
-
# Install system dependencies
|
| 19 |
USER root
|
| 20 |
RUN apt-get update && apt-get install -y \
|
| 21 |
build-essential \
|
| 22 |
-
|
| 23 |
libffi-dev \
|
| 24 |
libssl-dev \
|
| 25 |
-
cmake \
|
| 26 |
&& rm -rf /var/lib/apt/lists/*
|
| 27 |
USER user
|
| 28 |
|
| 29 |
# Install Python dependencies
|
| 30 |
COPY --chown=user requirements.txt .
|
| 31 |
RUN pip install --no-cache-dir --upgrade pip
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
| 33 |
# Ensure huggingface_hub is installed for the auto-download feature
|
| 34 |
RUN pip install --no-cache-dir huggingface_hub
|
| 35 |
|
|
|
|
| 15 |
# Set the working directory
|
| 16 |
WORKDIR $HOME/app
|
| 17 |
|
| 18 |
+
# Install minimal system dependencies
|
| 19 |
USER root
|
| 20 |
RUN apt-get update && apt-get install -y \
|
| 21 |
build-essential \
|
| 22 |
+
cmake \
|
| 23 |
libffi-dev \
|
| 24 |
libssl-dev \
|
|
|
|
| 25 |
&& rm -rf /var/lib/apt/lists/*
|
| 26 |
USER user
|
| 27 |
|
| 28 |
# Install Python dependencies
|
| 29 |
COPY --chown=user requirements.txt .
|
| 30 |
RUN pip install --no-cache-dir --upgrade pip
|
| 31 |
+
|
| 32 |
+
# Use pre-compiled wheels if available to avoid timeout
|
| 33 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 34 |
+
|
| 35 |
# Ensure huggingface_hub is installed for the auto-download feature
|
| 36 |
RUN pip install --no-cache-dir huggingface_hub
|
| 37 |
|
requirements.txt
CHANGED
|
@@ -1,43 +1,17 @@
|
|
| 1 |
-
annotated-types==0.7.0
|
| 2 |
-
anyio==4.12.1
|
| 3 |
-
app-store-scraper==0.3.5
|
| 4 |
-
certifi==2026.2.25
|
| 5 |
-
cffi==2.0.0
|
| 6 |
-
click==8.1.8
|
| 7 |
-
cryptography==46.0.7
|
| 8 |
-
diskcache==5.6.3
|
| 9 |
-
et_xmlfile==2.0.0
|
| 10 |
fastapi==0.128.8
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
fsspec==2025.10.0
|
| 14 |
-
google-play-scraper==1.2.7
|
| 15 |
-
h11==0.16.0
|
| 16 |
-
httpcore==1.0.9
|
| 17 |
-
httpx==0.28.1
|
| 18 |
-
huggingface_hub==0.36.2
|
| 19 |
-
idna==2.10
|
| 20 |
-
Jinja2==3.1.6
|
| 21 |
-
joblib==1.5.3
|
| 22 |
llama_cpp_python==0.3.20
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
openpyxl==3.1.5
|
| 26 |
-
packaging==26.1
|
| 27 |
pandas==2.3.3
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
python-dateutil==2.9.0.post0
|
| 32 |
-
requests==2.23.0
|
| 33 |
scikit-learn==1.6.1
|
| 34 |
scipy==1.13.1
|
| 35 |
-
|
| 36 |
-
starlette==0.49.3
|
| 37 |
-
stripe==15.0.1
|
| 38 |
-
tqdm==4.67.3
|
| 39 |
-
urllib3==1.25.11
|
| 40 |
-
uvicorn[standard]==0.33.0
|
| 41 |
-
gunicorn==21.2.0
|
| 42 |
python-dotenv==1.0.0
|
| 43 |
pycountry==24.6.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
fastapi==0.128.8
|
| 2 |
+
uvicorn[standard]==0.33.0
|
| 3 |
+
gunicorn==21.2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
llama_cpp_python==0.3.20
|
| 5 |
+
google-play-scraper==1.2.7
|
| 6 |
+
app-store-scraper==0.3.5
|
|
|
|
|
|
|
| 7 |
pandas==2.3.3
|
| 8 |
+
firebase_admin==7.4.0
|
| 9 |
+
stripe==15.0.1
|
| 10 |
+
huggingface_hub==0.36.2
|
|
|
|
|
|
|
| 11 |
scikit-learn==1.6.1
|
| 12 |
scipy==1.13.1
|
| 13 |
+
requests==2.23.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
python-dotenv==1.0.0
|
| 15 |
pycountry==24.6.1
|
| 16 |
+
tqdm==4.67.3
|
| 17 |
+
openpyxl==3.1.5
|