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
This commit is contained in:
parent
b3a85a55ea
commit
a0a083273c
1 changed files with 103 additions and 2 deletions
|
|
@ -1,8 +1,17 @@
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue