parsimony/Dockerfile
tgiachi a0a083273c feat(admin): build tooling, Docker stage and docs; close test gaps
- Add Makefile (admin, build, test) and a node stage in the Dockerfile
- Add .dockerignore so host node_modules and builds stay out of the image
- Document the admin UI in the README
- Cover mutation survivors: token cleanup on non-401 failures, cache dropped on 401 and sign out, member filter by name, archive invalidated after approval, page offset
2026-11-09 15:42:07 +01:00

20 lines
595 B
Docker

FROM node:24 AS admin
WORKDIR /src/admin
COPY admin/package.json admin/package-lock.json ./
RUN npm ci
COPY admin/ ./
# The build writes into ../internal/adminui/dist
RUN mkdir -p /src/internal/adminui/dist && npm run build
FROM golang:1.27 AS build
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
COPY --from=admin /src/internal/adminui/dist ./internal/adminui/dist
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"]