Download Dockerfile from FlyingNunchucks/14-data-analysis-agent: direct link, hf CLI and curl.
- Browser
- Download file 525 Bytes
-
https://huggingface.co/spaces/FlyingNunchucks/14-data-analysis-agent/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/FlyingNunchucks/14-data-analysis-agent/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/FlyingNunchucks/14-data-analysis-agent/resolve/main/Dockerfile
525 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| HOME=/home/user | |
| RUN useradd --create-home --uid 1000 user | |
| WORKDIR /home/user/app | |
| COPY requirements.txt ./requirements.txt | |
| RUN python -m pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user:user app.py ./app.py | |
| COPY --chown=user:user src ./src | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["python", "-m", "streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860", "--server.headless=true", "--browser.gatherUsageStats=false"] | |