feat: AI套图分层方案 + Gemini集成 - 4种图案类型处理 + 正片叠底 + 宽高比 + 模型选择
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
32
PltService/Dockerfile
Normal file
32
PltService/Dockerfile
Normal file
@@ -0,0 +1,32 @@
|
||||
# PLT 处理微服务 Dockerfile
|
||||
# 用于部署到阿里云 SAE
|
||||
|
||||
FROM python:3.10-slim
|
||||
|
||||
# 设置工作目录
|
||||
WORKDIR /app
|
||||
|
||||
# 安装系统依赖(OpenCV 需要)
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libgl1-mesa-glx \
|
||||
libglib2.0-0 \
|
||||
libsm6 \
|
||||
libxext6 \
|
||||
libxrender-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 复制依赖文件
|
||||
COPY requirements.txt .
|
||||
|
||||
# 安装 Python 依赖
|
||||
RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
|
||||
|
||||
# 复制代码
|
||||
COPY pltreader.py .
|
||||
COPY main.py .
|
||||
|
||||
# 暴露端口(SAE 默认使用 8080)
|
||||
EXPOSE 8080
|
||||
|
||||
# 启动命令
|
||||
CMD ["python", "main.py"]
|
||||
Reference in New Issue
Block a user