Spaces:
Sleeping
Sleeping
Download Dockerfile from aixo/k2thinkService: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/spaces/aixo/k2thinkService/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/aixo/k2thinkService/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/aixo/k2thinkService/resolve/main/Dockerfile
349 Bytes
| FROM python:3.12-slim | |
| # 设置环境变量 | |
| ENV PYTHONUNBUFFERED=1 | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 复制依赖文件并安装 | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 复制应用代码 | |
| COPY k2think_proxy.py . | |
| COPY src/ ./src/ | |
| # 暴露端口 | |
| EXPOSE 8001 | |
| # 启动应用 | |
| CMD ["python", "k2think_proxy.py"] |