Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files1 unmodified line2345678910111213141516171819201 unmodified lineWORKDIR /app# Install OllamaRUN apt-get update && apt-get install -y curl && \curl -fsSL https://ollama.com/install.sh | sh# Copy and install requirementsCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# Copy app filesCOPY . .# Pre-download modelsRUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')"# Start Ollama and appCMD ollama serve & sleep 10 && ollama pull llama3.1 && gunicorn --bind 0.0.0.0:10000 --workers 1 --timeout 300 app:app1 unmodified line234567891011121314151617181920212223241 unmodified lineWORKDIR /app# Install system dependenciesRUN apt-get update && apt-get install -y \curl \&& rm -rf /var/lib/apt/lists/*# Copy requirements and install Python packagesCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# Copy application filesCOPY . .# Expose Streamlit portEXPOSE 7860# Health checkHEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health || exit 1# Run StreamlitCMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
Dockerfile+13-9