diff options
| author | Fuwn <[email protected]> | 2026-02-26 17:54:57 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-26 17:54:57 -0800 |
| commit | 6127f7af68c99541071dddcf35062559043786a7 (patch) | |
| tree | d4dd67b464849203ee7f89a6a11cbaac13503fbf /Dockerfile | |
| parent | chore: add prometheus scrape configuration (diff) | |
| download | plutia-test-6127f7af68c99541071dddcf35062559043786a7.tar.xz plutia-test-6127f7af68c99541071dddcf35062559043786a7.zip | |
chore: update docker and compose development setup
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..34d7185 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM golang:1.25-alpine AS builder + +WORKDIR /app + +ENV CGO_ENABLED=0 + +COPY go.mod go.sum ./ + +RUN go mod download + +COPY . . + +RUN go build -trimpath -ldflags="-s -w" -o plutia ./cmd/plutia + +FROM gcr.io/distroless/base-debian12 + +WORKDIR /app + +USER 1000:1000 + +COPY --from=builder /app/plutia /app/plutia + +EXPOSE 8080 + +ENTRYPOINT ["/app/plutia"] |