-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 971 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (22 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# SAGE — Persistent consensus-validated memory for AI agents
# Server mode: docker run -p 8080:8080 -v ~/.sage:/root/.sage ghcr.io/l33tdawg/sage:latest
# MCP stdio: docker run -i ghcr.io/l33tdawg/sage:latest mcp
FROM golang:1.25-alpine AS builder
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
ARG VERSION=4.5.7
ARG COMMIT=unknown
RUN CGO_ENABLED=0 go build -ldflags="-s -w -X main.version=${VERSION} -X main.commit=${COMMIT}" -o /sage-gui ./cmd/sage-gui
FROM alpine:3.20
RUN apk add --no-cache ca-certificates
COPY --from=builder /sage-gui /usr/local/bin/sage-gui
ENV REST_ADDR=0.0.0.0:8080
EXPOSE 8080
LABEL org.opencontainers.image.source="https://github.com/l33tdawg/sage"
LABEL org.opencontainers.image.description="SAGE — Persistent consensus-validated memory for AI agents"
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL io.modelcontextprotocol.server.name="io.github.l33tdawg/sage"
ENTRYPOINT ["sage-gui"]
CMD ["serve"]