-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (26 loc) · 939 Bytes
/
Dockerfile
File metadata and controls
36 lines (26 loc) · 939 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
29
30
31
32
33
34
35
36
FROM golang:1.25.6-bookworm AS build
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gcc \
g++ \
pkg-config \
libsqlite3-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
ENV CGO_ENABLED=1
RUN go build -tags "fts5" -ldflags "-s -w" -o /out/tinymem ./cmd/tinymem
FROM debian:bookworm-slim
LABEL org.opencontainers.image.source="https://github.com/daverage/tinyMem" \
org.opencontainers.image.description="Local, project-scoped memory system for language models with evidence-based truth validation." \
org.opencontainers.image.licenses="MIT"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
libsqlite3-0 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /out/tinymem /usr/local/bin/tinymem
ENTRYPOINT ["/usr/local/bin/tinymem"]
CMD ["health"]