Spaces:
Paused
Paused
Download Dockerfile from Ethscriptions/hengdian: direct link, hf CLI and curl.
- Browser
- Download file 661 Bytes
-
https://huggingface.co/spaces/Ethscriptions/hengdian/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ethscriptions/hengdian/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ethscriptions/hengdian/resolve/main/Dockerfile
661 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| STREAMLIT_SERVER_HEADLESS=true \ | |
| STREAMLIT_SERVER_FILE_WATCHER_TYPE=none \ | |
| STREAMLIT_BROWSER_GATHER_USAGE_STATS=false \ | |
| PORT=7860 | |
| WORKDIR /app | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends \ | |
| chromium \ | |
| fontconfig \ | |
| fonts-noto-cjk \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip \ | |
| && pip install -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD streamlit run app.py --server.address=0.0.0.0 --server.port=${PORT} --server.fileWatcherType=none | |