servTe / Dockerfile
Ge-AI's picture
Upload 4 files
a18c6c7 verified
raw
history blame contribute delete
296 Bytes
FROM python:3.10-slim
# 安装pip依赖
WORKDIR /workspace
COPY requirements.txt .
COPY sys_claude.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 复制你的源码
COPY . .
# Space 必须监听 0.0.0.0:7860 或 3000,建议 7860!
ENV PORT=7860
EXPOSE 7860
CMD ["python", "api.py"]