Files
s3-cli/Dockerfile
zeekay 68c6531d4f deps: bump Go to 1.26.4 across go.mod, Dockerfiles, GH Actions
Workspace-wide sync. luxfi/node already shipped on 1.26.4 in v1.30.6
(commit 121aca1fa9); this is the cross-repo catch-up.
2026-06-07 12:12:24 -07:00

24 lines
474 B
Docker

FROM golang:1.26.4-alpine AS build
LABEL maintainer="Hanzo AI, Inc. <[email protected]>"
ENV GOPATH /go
ENV CGO_ENABLED 0
RUN apk add -U --no-cache ca-certificates git
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -v -ldflags "-s -w" -o /go/bin/s3 .
FROM scratch
COPY --from=build /go/bin/s3 /usr/bin/s3
COPY --from=build /src/LICENSE /licenses/LICENSE
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["s3"]