File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- FROM --platform=${TARGETPLATFORM:-linux/amd64} golang:1.21 as build-env
1
+ FROM golang:1.21 AS build-env
2
2
3
3
WORKDIR /go/src/app
4
4
ADD . /go/src/app
@@ -7,7 +7,7 @@ RUN go test -mod=vendor -cover ./...
7
7
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-w -s" -mod=vendor -o /go/bin/app
8
8
9
9
10
- FROM --platform=${TARGETPLATFORM:-linux/amd64} gcr.io/distroless/static:966f4bd97f611354c4ad829f1ed298df9386c2ec
10
+ FROM gcr.io/distroless/static:966f4bd97f611354c4ad829f1ed298df9386c2ec
11
11
# latest-amd64 -> 966f4bd97f611354c4ad829f1ed298df9386c2ec
12
12
# https://github.com/GoogleContainerTools/distroless/tree/master/base
13
13
Original file line number Diff line number Diff line change 1
- FROM --platform=${TARGETPLATFORM:-linux/amd64} golang:1.21 as build-env
1
+ FROM golang:1.21 AS build-env
2
2
3
3
WORKDIR /go/src/app
4
4
ADD . /go/src/app
@@ -7,7 +7,7 @@ RUN go test -mod=vendor -cover ./...
7
7
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-w -s" -mod=vendor -o /go/bin/app
8
8
9
9
10
- FROM --platform=${TARGETPLATFORM:-linux/amd64} gcr.io/distroless/static:966f4bd97f611354c4ad829f1ed298df9386c2ec
10
+ FROM gcr.io/distroless/static:966f4bd97f611354c4ad829f1ed298df9386c2ec
11
11
# latest-amd64 -> 966f4bd97f611354c4ad829f1ed298df9386c2ec
12
12
# https://github.com/GoogleContainerTools/distroless/tree/master/base
13
13
You can’t perform that action at this time.
0 commit comments