summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-14 15:39:43 +0300
committerPaul Buetow <paul@buetow.org>2026-04-14 15:39:43 +0300
commit0534d00024ede58ffa83a7c715e68cc03e6f9328 (patch)
treefb1a8764e17305386d1650cd6fdff2707f4b8ffc /Dockerfile
parent299aa6727025c4f888ec2a38b8945ed39159a99c (diff)
Release 0.3.0 with daemon API and container packaging.
Document the full HTTP API surface, bump the version for the new daemon/upload/report capabilities, and add Docker build assets so goprecords can be packaged and deployed in f3s. Made-with: Cursor
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..6158745
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,20 @@
+FROM golang:1.21-alpine AS build
+WORKDIR /src
+
+RUN apk add --no-cache ca-certificates
+
+COPY go.mod go.sum ./
+RUN go mod download
+
+COPY . .
+RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o /out/goprecords ./cmd/goprecords
+
+FROM alpine:3.20
+RUN apk add --no-cache ca-certificates
+
+WORKDIR /app
+COPY --from=build /out/goprecords /usr/local/bin/goprecords
+
+EXPOSE 8080
+
+ENTRYPOINT ["/usr/local/bin/goprecords"]