locus0515/inception
0
1# 使用官方Python运行时作为基础镜像2FROM python:3.10-slim3 4# 设置工作目录5WORKDIR /app6 7# 安装必要的系统依赖8RUN apt-get update && apt-get install -y \9 git \10 curl \11 && rm -rf /var/lib/apt/lists/*12 13# 克隆inception-2api项目14RUN git clone https://github.com/lzA6/inception-2api.git .15 16# 安装Python依赖17RUN pip install --no-cache-dir -r requirements.txt18 19# 暴露Hugging Face默认端口20EXPOSE 786021 22# 设置环境变量23ENV PYTHONUNBUFFERED=124ENV PORT=786025ENV NGINX_PORT=786026ENV HOST=0.0.0.027 28# 启动命令 - 直接使用uvicorn启动29CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]