Skip to content

Commit 2747f0b

Browse files
committed
chore: update Dockerfiles
1 parent a321967 commit 2747f0b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

action/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=${TARGETPLATFORM:-linux/amd64} golang:1.21 as build-env
1+
FROM golang:1.21 AS build-env
22

33
WORKDIR /go/src/app
44
ADD . /go/src/app
@@ -7,7 +7,7 @@ RUN go test -mod=vendor -cover ./...
77
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-w -s" -mod=vendor -o /go/bin/app
88

99

10-
FROM --platform=${TARGETPLATFORM:-linux/amd64} gcr.io/distroless/static:966f4bd97f611354c4ad829f1ed298df9386c2ec
10+
FROM gcr.io/distroless/static:966f4bd97f611354c4ad829f1ed298df9386c2ec
1111
# latest-amd64 -> 966f4bd97f611354c4ad829f1ed298df9386c2ec
1212
# https://github.com/GoogleContainerTools/distroless/tree/master/base
1313

server/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=${TARGETPLATFORM:-linux/amd64} golang:1.21 as build-env
1+
FROM golang:1.21 AS build-env
22

33
WORKDIR /go/src/app
44
ADD . /go/src/app
@@ -7,7 +7,7 @@ RUN go test -mod=vendor -cover ./...
77
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-w -s" -mod=vendor -o /go/bin/app
88

99

10-
FROM --platform=${TARGETPLATFORM:-linux/amd64} gcr.io/distroless/static:966f4bd97f611354c4ad829f1ed298df9386c2ec
10+
FROM gcr.io/distroless/static:966f4bd97f611354c4ad829f1ed298df9386c2ec
1111
# latest-amd64 -> 966f4bd97f611354c4ad829f1ed298df9386c2ec
1212
# https://github.com/GoogleContainerTools/distroless/tree/master/base
1313

0 commit comments

Comments
 (0)