Spaces:
Sleeping
Sleeping
Download Dockerfile from AimanGh/explore_Chinese: direct link, hf CLI and curl.
- Browser
- Download file 911 Bytes
-
https://huggingface.co/spaces/AimanGh/explore_Chinese/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AimanGh/explore_Chinese/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AimanGh/explore_Chinese/resolve/main/Dockerfile
911 Bytes
| # Dockerfile โ Hugging Face Space (Streamlit + env-var secrets) | |
| FROM python:3.11-slim | |
| # sane defaults + make Streamlit write under /app | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| LANG=C.UTF-8 \ | |
| LC_ALL=C.UTF-8 \ | |
| HOME=/app \ | |
| STREAMLIT_BROWSER_GATHER_USAGE_STATS=false | |
| WORKDIR /app | |
| RUN mkdir -p /app/.streamlit | |
| # Python deps | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # App code | |
| COPY . . | |
| # Streamlit on 8501 | |
| EXPOSE 8501 | |
| # Healthcheck without curl | |
| HEALTHCHECK CMD python -c "import urllib.request as u; u.urlopen('http://localhost:8501/_stcore/health')" || exit 1 | |
| # <<< IMPORTANT: set your actual entry file here >>> | |
| # If your main file is literally named '๐ _Home.py', keep this line. | |
| # If it's '_Home.py' or 'app.py', change it accordingly. | |
| ENTRYPOINT ["streamlit", "run", "๐ _Home.py", "--server.port=8501", "--server.address=0.0.0.0"] | |