Spaces:
Runtime error
Runtime error
Download Dockerfile from ss900371tw/HML: direct link, hf CLI and curl.
- Browser
- Download file 638 Bytes
-
https://huggingface.co/spaces/ss900371tw/HML/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ss900371tw/HML/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ss900371tw/HML/resolve/main/Dockerfile
638 Bytes
| FROM python:3.13.5-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt ./ | |
| COPY src/ ./src/ | |
| RUN pip3 install -r requirements.txt | |
| EXPOSE 8501 | |
| HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health | |
| # === 修改了下面這一行 === | |
| # 加入了 --server.enableXsrfProtection=false 和 --server.enableCORS=false | |
| ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false", "--server.enableCORS=false", "--server.maxUploadSize=2000"] |