mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
🐳 chore: 改用docker hub
This commit is contained in:
parent
a5c8315c21
commit
f93f06382f
4 changed files with 7 additions and 10 deletions
|
|
@ -1,8 +1,10 @@
|
|||
# 第一阶段:前端构建
|
||||
FROM ccr.ccs.tencentyun.com/kalicyh/node:18-alpine AS frontend-builder
|
||||
FROM kalicyh/node:v18-alpine AS frontend-builder
|
||||
|
||||
WORKDIR /app/ZhiKongTaiWeb
|
||||
|
||||
# RUN corepack enable && yarn config set registry https://registry.npmmirror.com
|
||||
|
||||
COPY ZhiKongTaiWeb/package.json ZhiKongTaiWeb/yarn.lock ./
|
||||
|
||||
RUN yarn install --frozen-lockfile
|
||||
|
|
@ -11,7 +13,7 @@ COPY ZhiKongTaiWeb .
|
|||
RUN yarn build
|
||||
|
||||
# 第二阶段:构建 Python 依赖
|
||||
FROM ccr.ccs.tencentyun.com/kalicyh/poetry:v3.10_xiaozhi AS builder
|
||||
FROM kalicyh/poetry:v3.10_xiaozhi AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
services:
|
||||
xiaozhi-esp32-server:
|
||||
image: ccr.ccs.tencentyun.com/kalicyh/esp32-ai-server:latest
|
||||
image: kalicyh/xiaozhi-esp32-server:latest
|
||||
container_name: xiaozhi-esp32-server
|
||||
restart: always
|
||||
#security_opt:
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ docker run -it --name xiaozhi-env --restart always --security-opt seccomp:unconf
|
|||
-p 8000:8000 \
|
||||
-p 8002:8002 \
|
||||
-v ./:/app \
|
||||
ccr.ccs.tencentyun.com/kalicyh/poetry:v3.10_latest
|
||||
kalicyh/poetry:v3.10_latest
|
||||
```
|
||||
|
||||
然后就和正常开发一样了
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ docker run -it --name xiaozhi-env --restart always --security-opt seccomp:unconf
|
|||
-p 8000:8000 \
|
||||
-p 8002:8002 \
|
||||
-v ./:/app \
|
||||
ccr.ccs.tencentyun.com/kalicyh/poetry:v3.10_latest
|
||||
kalicyh/poetry:v3.10_xiaozhi
|
||||
```
|
||||
|
||||
然后就和正常开发一样了
|
||||
|
|
@ -70,11 +70,6 @@ docker run -it --name xiaozhi-env --restart always --security-opt seccomp:unconf
|
|||
poetry install --no-root
|
||||
```
|
||||
|
||||
```sh
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends libopus0 ffmpeg
|
||||
```
|
||||
|
||||
速度慢可以尝试使用清华镜像
|
||||
|
||||
```sh
|
||||
|
|
|
|||
Loading…
Reference in a new issue