update:优化docker编译

This commit is contained in:
hrz
2025-02-06 11:01:05 +08:00
parent 56156c3a2e
commit e24b033623
4 changed files with 53 additions and 18 deletions
+1
View File
@@ -13,6 +13,7 @@ docker build -t xiaozhi-esp32-server:local -f ./Dockerfile .
docker stop xiaozhi-esp32-server
docker rm xiaozhi-esp32-server
cd /Users/hrz/myworkspace/docker-java-env/thirddata/
cp /Users/hrz/myworkspace/esp32/xiaozhi-esp32-server/config.yaml ./
docker run -d --name xiaozhi-esp32-server --restart always -p 8000:8000 -v $(pwd)/config.yaml:/opt/xiaozhi-es32-server/config.yaml xiaozhi-esp32-server:local