fix: 添加 docker-cli 依赖,修复 TLS 环境变量,支持容器健康检查
This commit is contained in:
parent
c876a69443
commit
1bfc2577c2
|
|
@ -17,7 +17,7 @@ RUN npm run build
|
|||
FROM node:22-alpine AS runner
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
RUN apk add --no-cache sqlite
|
||||
RUN apk add --no-cache sqlite docker-cli
|
||||
COPY --from=base /app/.next/standalone ./
|
||||
COPY --from=base /app/.next/static ./.next/static
|
||||
COPY --from=base /app/scripts ./scripts
|
||||
|
|
|
|||
|
|
@ -9,10 +9,12 @@ services:
|
|||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- ./data:/app/data
|
||||
env_file: .env
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- DATABASE_PATH=/app/data/monitor.db
|
||||
- MONITOR_MODE=local
|
||||
- NODE_TLS_REJECT_UNAUTHORIZED=0
|
||||
networks:
|
||||
- webnet
|
||||
init: true
|
||||
|
|
|
|||
Loading…
Reference in New Issue