bootstrap: freeze March 8 release path and evidence tooling

This commit is contained in:
anthonyrawlins
2026-02-26 22:48:50 +11:00
parent 8fa636acbb
commit 2147cec1c5
10 changed files with 682 additions and 280 deletions

View File

@@ -8,21 +8,15 @@ RUN apk --no-cache add git ca-certificates
WORKDIR /build
# Copy go mod files first (for better caching)
COPY go.mod go.sum ./
# Download dependencies
RUN go mod download
# Copy source code
# Copy source code (vendor dir includes all dependencies)
COPY . .
# Build the CHORUS binary with mod mode
RUN CGO_ENABLED=0 GOOS=linux go build \
-mod=mod \
# Build the CHORUS agent binary using vendored dependencies
RUN CGO_ENABLED=0 GOOS=linux GOWORK=off go build \
-mod=vendor \
-ldflags='-w -s -extldflags "-static"' \
-o chorus \
./cmd/chorus
-o chorus-agent \
./cmd/agent
# Final minimal runtime image
FROM alpine:3.18
@@ -42,8 +36,8 @@ RUN mkdir -p /app/data && \
chown -R chorus:chorus /app
# Copy binary from builder stage
COPY --from=builder /build/chorus /app/chorus
RUN chmod +x /app/chorus
COPY --from=builder /build/chorus-agent /app/chorus-agent
RUN chmod +x /app/chorus-agent
# Switch to non-root user
USER chorus
@@ -64,5 +58,5 @@ ENV LOG_LEVEL=info \
CHORUS_HEALTH_PORT=8081 \
CHORUS_P2P_PORT=9000
# Start CHORUS
ENTRYPOINT ["/app/chorus"]
# Start CHORUS agent
ENTRYPOINT ["/app/chorus-agent"]