From e24cf2c2a73a803caf6f78db99f28c6dbcea379d Mon Sep 17 00:00:00 2001 From: awayatan Date: Sun, 26 Jul 2026 23:44:28 +0900 Subject: [PATCH] Bake phrases.yaml into the runtime image Only config.yaml was bind-mounted into the container, so phrases_file's default "./phrases.yaml" had nothing to resolve to at runtime and the bot crash-looped on startup. phrases.yaml is repo-tracked source, not a secret, so it belongs in the image like the binary itself. Co-Authored-By: Claude Sonnet 5 --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index d45e2ae..fba1ec7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ RUN CGO_ENABLED=0 go build -o /out/yaju-keisatsu ./cmd/yaju-is-always-watching-y FROM alpine:3.20 RUN apk add --no-cache ca-certificates COPY --from=build /out/yaju-keisatsu /usr/local/bin/yaju-keisatsu +COPY phrases.yaml /etc/yaju-keisatsu/phrases.yaml EXPOSE 8080 ENTRYPOINT ["/usr/local/bin/yaju-keisatsu"] CMD ["-config", "/etc/yaju-keisatsu/config.yaml"]