Download Dockerfile from mah000/bitbcpy: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/spaces/mah000/bitbcpy/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mah000/bitbcpy/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mah000/bitbcpy/resolve/main/Dockerfile
373 Bytes
| # 使用官方 Python 基础镜像 | |
| FROM python:3.9-slim | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 复制依赖文件并安装依赖 | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 复制应用代码 | |
| COPY . . | |
| # 暴露 Streamlit 默认端口 | |
| EXPOSE 8501 | |
| # 启动 Streamlit 应用 | |
| CMD ["streamlit", "run", "bitbcpy.py", "--server.address=0.0.0.0"] | |