mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
Docker 支持后续新版web后台
This commit is contained in:
parent
325312327c
commit
ea4c054d99
3 changed files with 15 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -143,3 +143,4 @@ tmp
|
||||||
.config.yaml
|
.config.yaml
|
||||||
.secrets.yaml
|
.secrets.yaml
|
||||||
.private_config.yaml
|
.private_config.yaml
|
||||||
|
docker-compose.yml
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,8 @@ RUN npm config set registry https://registry.npmmirror.com
|
||||||
|
|
||||||
COPY ZhiKongTaiWeb/package*.json ./
|
COPY ZhiKongTaiWeb/package*.json ./
|
||||||
|
|
||||||
|
# 安装axios依赖
|
||||||
|
RUN npm install axios
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
COPY ZhiKongTaiWeb .
|
COPY ZhiKongTaiWeb .
|
||||||
|
|
|
||||||
12
docker-compose-example.yml
Executable file
12
docker-compose-example.yml
Executable file
|
|
@ -0,0 +1,12 @@
|
||||||
|
services:
|
||||||
|
xiaozhi-esp32-server:
|
||||||
|
image: ccr.ccs.tencentyun.com/xinnan/xiaozhi-esp32-server:latest
|
||||||
|
container_name: xiaozhi-esp32-server
|
||||||
|
restart: always
|
||||||
|
#security_opt:
|
||||||
|
# - seccomp:unconfined
|
||||||
|
ports:
|
||||||
|
- "8000:8000"
|
||||||
|
- "8002:8002"
|
||||||
|
volumes:
|
||||||
|
- ./.config.yaml:/opt/xiaozhi-esp32-server/config.yaml
|
||||||
Loading…
Reference in a new issue