Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files12345678910111213141516171819202122232425262728293031FROM python:3.10-slimRUN apt-get update && apt-get install -y --no-install-recommends \build-essential \libgomp1 \&& rm -rf /var/lib/apt/lists/*WORKDIR /appCOPY requirements.txt requirements-yield.txt ./# Add huggingface_hub for downloadingRUN pip install --no-cache-dir -r requirements.txt huggingface_hub# Only copy the app code — no model filesCOPY app.py ./COPY download_models.py ./RUN mkdir -p /app/uploadsENV PORT=5000 \TEA_ARTIFACT_DIR=/app/artifacts_tea_hybrid \TEA_DATA_PATH=/app/tea_auction_advanced_dataset.csv \TEA_MIN_ARIMA_POINTS=60 \HF_REPO_ID=your-username/your-repo-name \HF_TOKEN=""EXPOSE 5000# Download files first, then start the serverCMD ["sh", "-c", "python download_models.py && gunicorn --bind 0.0.0.0:5000 --workers 2 --timeout 120 app:app"]12345678910111213141516171819202122232425262728293031FROM python:3.10-slimRUN apt-get update && apt-get install -y --no-install-recommends \build-essential \libgomp1 \&& rm -rf /var/lib/apt/lists/*WORKDIR /appCOPY requirements.txt requirements-yield.txt ./# Add huggingface_hub for downloadingRUN pip install --no-cache-dir -r requirements.txt huggingface_hub# Only copy the app code — no model filesCOPY app.py ./COPY download_models.py ./RUN mkdir -p /app/uploadsENV PORT=5000 \TEA_ARTIFACT_DIR=/app/artifacts_tea_hybrid \TEA_DATA_PATH=/app/tea_auction_advanced_dataset.csv \TEA_MIN_ARIMA_POINTS=60 \HF_REPO_ID=your-username/your-repo-name \HF_TOKEN=""EXPOSE 5000# Download files first, then start the serverCMD ["sh", "-c", "huggingface.py && gunicorn --bind 0.0.0.0:5000 --workers 2 --timeout 120 app:app"]
Dockerfile+31-31