Download Dockerfile from kingtest/aichats: direct link, hf CLI and curl.
- Browser
- Download file 498 Bytes
-
https://huggingface.co/spaces/kingtest/aichats/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/kingtest/aichats/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/kingtest/aichats/resolve/main/Dockerfile
498 Bytes
| # 使用Python官方镜像作为基础镜像 | |
| FROM python:3.9-slim | |
| # 安装git | |
| RUN apt-get update && apt-get install -y git | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 克隆仓库 | |
| RUN git clone https://github.com/w1501052468/aichats-reverse.git . | |
| # 安装依赖 | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 设置环境变量 | |
| ENV APP_SECRET=your_secret_here | |
| # 暴露服务端口(如果需要的话,请替换为实际端口) | |
| EXPOSE 8002 | |
| # 运行服务 | |
| CMD ["python", "/app/api/main.py"] |