优化docker相关

This commit is contained in:
yml
2026-05-19 21:41:43 +08:00
parent 4429fb20d7
commit f157fbc87a
5 changed files with 33 additions and 133 deletions
+3 -5
View File
@@ -67,12 +67,12 @@ services:
- "${TENCENT_BROWSER_NOVNC_PORT:-6080}:6080"
frontend:
image: node:22-bookworm
image: node:22-bookworm-slim
working_dir: /app
restart: unless-stopped
command: >-
sh -lc
"npm install --no-fund --no-audit &&
"[ -f node_modules/.install_done ] || (npm install --no-fund --no-audit && touch node_modules/.install_done);
npm run dev -- --host 0.0.0.0 --port 5173"
environment:
TZ: ${TZ:-Asia/Shanghai}
@@ -84,9 +84,7 @@ services:
- frontend_node_modules:/app/node_modules
web:
build:
context: .
dockerfile: deploy/docker/dev-caddy.Dockerfile
image: caddy:2-alpine
restart: unless-stopped
depends_on:
backend: