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:
parent
87744a0d97
commit
28d22d51de
1 changed files with 114 additions and 0 deletions
11
Dockerfile
Normal file
11
Dockerfile
Normal 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"]
|
||||
Loading…
Reference in a new issue