File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- # syntax=docker/dockerfile:1.6
2
- FROM golang:1.22 as base
1
+ # syntax=docker/dockerfile:1.8
2
+ FROM golang:1.22 AS base
3
3
ARG VERSION
4
4
ARG TARGETARCH
5
5
6
6
WORKDIR /go/src/github.com/nginxinc/nginx-prometheus-exporter
7
7
8
- FROM base as builder
8
+ FROM base AS builder
9
9
COPY --link go.mod go.sum ./
10
10
RUN go mod download
11
11
COPY --link *.go ./
@@ -14,17 +14,17 @@ COPY --link client ./client
14
14
RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -trimpath -a -ldflags "-s -w -X main.version=${VERSION}" -o nginx-prometheus-exporter .
15
15
16
16
17
- FROM scratch as intermediate
17
+ FROM scratch AS intermediate
18
18
COPY --from=base --link /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
19
19
USER 1001:1001
20
20
ENTRYPOINT [ "/usr/bin/nginx-prometheus-exporter" ]
21
21
22
22
23
- FROM intermediate as container
23
+ FROM intermediate AS container
24
24
COPY --from=builder --link /go/src/github.com/nginxinc/nginx-prometheus-exporter/nginx-prometheus-exporter /usr/bin/
25
25
26
26
27
- FROM intermediate as goreleaser
27
+ FROM intermediate AS goreleaser
28
28
ARG TARGETARCH
29
29
ARG TARGETVARIANT
30
30
ARG TARGETPLATFORM
You can’t perform that action at this time.
0 commit comments