Download Dockerfile from liovina/nl-sql: direct link, hf CLI and curl.
- Browser
- Download file 592 Bytes
-
https://huggingface.co/spaces/liovina/nl-sql/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/liovina/nl-sql/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/liovina/nl-sql/resolve/main/Dockerfile
592 Bytes
| FROM python:3.12-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONPATH=/app/src \ | |
| PIP_NO_CACHE_DIR=1 | |
| WORKDIR /app | |
| # libgomp1: required by onnxruntime / chromadb at import time | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app/streamlit_app.py", \ | |
| "--server.port=7860", "--server.address=0.0.0.0", \ | |
| "--server.headless=true", "--browser.gatherUsageStats=false"] | |