优化docker相关
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user