diff --git a/Dockerfile b/Dockerfile index fe10eb0c9..5401aec22 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.21 as builder +FROM golang:1.21 AS builder ARG TAG ARG COMMIT @@ -30,7 +30,7 @@ RUN go mod download RUN date +%FT%H:%I:%M+%Z > /tmp/date RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -buildvcs=true -a -gcflags='all="-l"' -ldflags='-s -w -extldflags "-static" -X main.version='${TAG}' -X main.commit='${COMMIT}' -X main.date='$(cat /tmp/date) -o /go/bin/apigeecli /go/src/apigeecli/cmd/apigeecli/apigeecli.go -FROM ghcr.io/jqlang/jq:latest as jq +FROM ghcr.io/jqlang/jq:latest AS jq # use debug because it includes busybox FROM gcr.io/distroless/static-debian11:debug-nonroot