Download Dockerfile from liamxdev/chatvns: direct link, hf CLI and curl.
- Browser
- Download file 666 Bytes
-
https://huggingface.co/spaces/liamxdev/chatvns/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/liamxdev/chatvns/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/liamxdev/chatvns/resolve/main/Dockerfile
666 Bytes
| FROM python:3.11-slim | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| APP_TICKERS=HPG,FPT,VCB \ | |
| REQUIRE_USER_API_KEYS=1 \ | |
| STREAMLIT_SERVER_HEADLESS=true \ | |
| STREAMLIT_BROWSER_GATHER_USAGE_STATS=false | |
| WORKDIR $HOME/app | |
| COPY --chown=user requirements.txt ./requirements.txt | |
| RUN pip install --no-cache-dir --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user . . | |
| EXPOSE 7860 | |
| CMD ["sh", "-c", "python hf_bootstrap.py && exec streamlit run app/streamlit_app.py --server.address=0.0.0.0 --server.port=7860"] | |