diff options
| author | Fuwn <[email protected]> | 2026-02-26 19:54:46 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-26 19:54:46 -0800 |
| commit | 3b05299b6e0badb0dbda62d2470a6b78d8e67ff4 (patch) | |
| tree | 877d1ae17271ecc1be885742c9a049abb069c55d /Dockerfile | |
| parent | chore: update docker and compose development setup (diff) | |
| download | plutia-test-3b05299b6e0badb0dbda62d2470a6b78d8e67ff4.tar.xz plutia-test-3b05299b6e0badb0dbda62d2470a6b78d8e67ff4.zip | |
feat: add keygen command and inject docker build metadata
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |