You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: deploy/Dockerfile
+25-3Lines changed: 25 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,28 @@
13
13
# limitations under the License.
14
14
15
15
FROM golang:1.17
16
+
WORKDIR /src
16
17
17
18
# This arg is passed by docker buildx & contains the target CPU architecture (e.g., amd64, arm64, etc.)
18
19
ARG TARGETARCH
19
20
20
-
WORKDIR /src
21
-
COPY . .
21
+
ENV GOARCH=$TARGETARCH
22
+
ENV CGO_ENABLED=0
23
+
ENV GOBIN=/usr/local/bin
24
+
25
+
# Get GCR credential helper
26
+
RUN go install github.com/GoogleCloudPlatform/docker-credential-gcr@4cdd60d0f2d8a69bc70933f4d7718f9c4e956ff8
27
+
28
+
# Get Amazon ECR credential helper
29
+
RUN go install github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cli/docker-credential-ecr-login@69c85dc22db6511932bbf119e1a0cc5c90c69a7f # v0.6.0
22
30
31
+
# Get ACR docker env credential helper
32
+
RUN go install github.com/chrismellard/docker-credential-acr-env@09e2b5a8ac86c3ec347b2473e42b34367d8fa419
Copy file name to clipboardExpand all lines: deploy/Dockerfile_debug
+31-10Lines changed: 31 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,28 @@
13
13
# limitations under the License.
14
14
15
15
FROM golang:1.17
16
+
WORKDIR /src
16
17
17
18
# This arg is passed by docker buildx & contains the target CPU architecture (e.g., amd64, arm64, etc.)
18
19
ARG TARGETARCH
19
20
20
-
WORKDIR /src
21
-
COPY . .
21
+
ENV GOARCH=$TARGETARCH
22
+
ENV CGO_ENABLED=0
23
+
ENV GOBIN=/usr/local/bin
24
+
25
+
# Get GCR credential helper
26
+
RUN go install github.com/GoogleCloudPlatform/docker-credential-gcr@4cdd60d0f2d8a69bc70933f4d7718f9c4e956ff8
27
+
28
+
# Get Amazon ECR credential helper
29
+
RUN go install github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cli/docker-credential-ecr-login@69c85dc22db6511932bbf119e1a0cc5c90c69a7f # v0.6.0
30
+
31
+
# Get ACR docker env credential helper
32
+
RUN go install github.com/chrismellard/docker-credential-acr-env@09e2b5a8ac86c3ec347b2473e42b34367d8fa419
Copy file name to clipboardExpand all lines: deploy/Dockerfile_warmer
+26-5Lines changed: 26 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,28 @@
13
13
# limitations under the License.
14
14
15
15
FROM golang:1.17
16
+
WORKDIR /src
16
17
17
18
# This arg is passed by docker buildx & contains the target CPU architecture (e.g., amd64, arm64, etc.)
18
19
ARG TARGETARCH
19
20
20
-
WORKDIR /src
21
-
COPY . .
21
+
ENV GOARCH=$TARGETARCH
22
+
ENV CGO_ENABLED=0
23
+
ENV GOBIN=/usr/local/bin
24
+
25
+
# Get GCR credential helper
26
+
RUN go install github.com/GoogleCloudPlatform/docker-credential-gcr@4cdd60d0f2d8a69bc70933f4d7718f9c4e956ff8
27
+
28
+
# Get Amazon ECR credential helper
29
+
RUN go install github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cli/docker-credential-ecr-login@69c85dc22db6511932bbf119e1a0cc5c90c69a7f # v0.6.0
30
+
31
+
# Get ACR docker env credential helper
32
+
RUN go install github.com/chrismellard/docker-credential-acr-env@09e2b5a8ac86c3ec347b2473e42b34367d8fa419
0 commit comments