From db02eb41d016dcb4f0e72f419f52e71e2a9bd1d6 Mon Sep 17 00:00:00 2001 From: OG T Date: Thu, 9 Apr 2026 09:12:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(docker):=20COPY=20alert=5Frules.yaml=20?= =?UTF-8?q?=E9=80=B2=E5=AE=B9=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 規則引擎從 ./alert_rules.yaml 載入,Dockerfile 漏了 COPY 2026-04-09 ogt: fix Co-Authored-By: Claude Sonnet 4.6 --- apps/api/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile index 5d7ef5a7..420d1413 100644 --- a/apps/api/Dockerfile +++ b/apps/api/Dockerfile @@ -53,6 +53,8 @@ COPY --from=builder /usr/local/bin /usr/local/bin ARG CACHE_BUST=none COPY apps/api/src/ ./src/ COPY apps/api/models.json ./models.json +# 2026-04-09 ogt: 規則引擎配置 — alert_rule_engine.py 從此檔載入規則 +COPY apps/api/alert_rules.yaml ./alert_rules.yaml # Create non-root user RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app