feat: daemon entrypoint, YAML config and Dockerfile

- Add config loader with defaults and strict unknown-field rejection
- Add cmd/parsimony wiring store, router, relay and LMTP server
- Handle SIGINT and SIGTERM for graceful shutdown
- Add Dockerfile and example config
This commit is contained in:
tgiachi 2026-11-09 14:55:38 +01:00
commit 28d22d51de

11
Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM golang:1.27 AS build
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o /parsimony ./cmd/parsimony
FROM gcr.io/distroless/static-debian12
COPY --from=build /parsimony /parsimony
VOLUME /data
ENTRYPOINT ["/parsimony", "-config", "/data/parsimony.yaml"]