minimax-tools / Dockerfile
Ray
Initial commit: MiniMax Tools for Hugging Face Space
b17403a
FROM python:3.11-slim
# 设置工作目录
WORKDIR /app
# 安装系统依赖
RUN apt-get update && apt-get install -y \
curl \
&& rm -rf /var/lib/apt/lists/*
# 复制需求文件
COPY requirements.txt .
# 安装Python依赖
RUN pip install --no-cache-dir -r requirements.txt
# 复制应用代码
COPY app/ ./
# 创建临时目录(使用标准 /tmp)
RUN mkdir -p /tmp
# 暴露端口(Hugging Face Space 使用 7860)
EXPOSE 7860
# 启动命令
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]