refactor: demo 目录拆分为 app-simple 与 plateform,同步更新 README 路径

This commit is contained in:
2026-11-15 10:01:45 +08:00
parent 66ff0600a9
commit 4f4b797ec9
80 changed files with 14 additions and 13 deletions
@@ -0,0 +1,18 @@
# 单阶段:runtime-python310 已含 Python 3.10.0 + pip 镜像源(见 image/runtime-python310),编译与运行共用
FROM registry.cn-shanghai.aliyuncs.com/odboy/kenaito:runtime-python310
LABEL MAINTAINER="tianjun@odboy.cn"
ENV TimeZone=Asia/Shanghai
ENV PYTHONUNBUFFERED=1
ENV APP_PORT=8083
WORKDIR /home/admin
# 先只拷贝依赖清单,依赖不变时复用 pip 层缓存
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
COPY app.py ./
COPY templates ./templates
EXPOSE 8083
# exec 形式,保证 docker stop 的 SIGTERM 能传到 python 进程
ENTRYPOINT ["python3", "app.py"]