aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-26 19:54:46 -0800
committerFuwn <[email protected]>2026-02-26 19:54:46 -0800
commit3b05299b6e0badb0dbda62d2470a6b78d8e67ff4 (patch)
tree877d1ae17271ecc1be885742c9a049abb069c55d /Dockerfile
parentchore: update docker and compose development setup (diff)
downloadplutia-test-3b05299b6e0badb0dbda62d2470a6b78d8e67ff4.tar.xz
plutia-test-3b05299b6e0badb0dbda62d2470a6b78d8e67ff4.zip
feat: add keygen command and inject docker build metadata
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 34d7185..0bee4c1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,13 +4,17 @@ WORKDIR /app
ENV CGO_ENABLED=0
+ARG VERSION
+ARG COMMIT
+ARG BUILD_DATE
+
COPY go.mod go.sum ./
RUN go mod download
COPY . .
-RUN go build -trimpath -ldflags="-s -w" -o plutia ./cmd/plutia
+RUN go build -trimpath -ldflags="-s -w -X main.version=${VERSION} -X main.commit=${COMMIT} -X main.buildDate=${BUILD_DATE}" -o plutia ./cmd/plutia
FROM gcr.io/distroless/base-debian12