From ea4c054d99c4d3f715278095d465a8bbf7240d0d Mon Sep 17 00:00:00 2001 From: TOM88812 Date: Mon, 17 Feb 2025 17:25:26 +0800 Subject: [PATCH] =?UTF-8?q?Docker=20=E6=94=AF=E6=8C=81=E5=90=8E=E7=BB=AD?= =?UTF-8?q?=E6=96=B0=E7=89=88web=E5=90=8E=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + Dockerfile | 2 ++ docker-compose-example.yml | 12 ++++++++++++ 3 files changed, 15 insertions(+) create mode 100755 docker-compose-example.yml diff --git a/.gitignore b/.gitignore index 8e8b0e02..0a545fa8 100644 --- a/.gitignore +++ b/.gitignore @@ -143,3 +143,4 @@ tmp .config.yaml .secrets.yaml .private_config.yaml +docker-compose.yml diff --git a/Dockerfile b/Dockerfile index 5ae890f2..8dd7a9f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,8 @@ RUN npm config set registry https://registry.npmmirror.com COPY ZhiKongTaiWeb/package*.json ./ +# 安装axios依赖 +RUN npm install axios RUN npm install COPY ZhiKongTaiWeb . diff --git a/docker-compose-example.yml b/docker-compose-example.yml new file mode 100755 index 00000000..41a4ebf9 --- /dev/null +++ b/docker-compose-example.yml @@ -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 \ No newline at end of file