mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-21 22:53:56 +08:00
* fixed:兼容旧版本docker * update:增加前端设计图 * update:dockerfile * fix:修复新版docker目录不对bug * fix: 修复docker快速启动方式中无法读取配置的问题 #207 (#219) Co-authored-by: 欣南科技 <huangrongzhuang@xin-nan.com> --------- Co-authored-by: hrz <1710360675@qq.com> Co-authored-by: yanyige <232218719@qq.com>
16 lines
342 B
Docker
16 lines
342 B
Docker
# 第一阶段:构建 Python 依赖
|
|
FROM kalicyh/poetry:v3.10_xiaozhi AS builder
|
|
|
|
WORKDIR /opt/xiaozhi-esp32-server
|
|
|
|
# 同时拷贝本地环境.venv
|
|
COPY . .
|
|
# 检查是否有缺失
|
|
RUN poetry install --no-root
|
|
|
|
# 设置虚拟环境路径
|
|
ENV PATH="/app/.venv/bin:$PATH"
|
|
|
|
# 启动应用
|
|
ENTRYPOINT ["poetry", "run", "python"]
|
|
CMD ["app.py"] |