We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7456847 commit c199f55Copy full SHA for c199f55
Dockerfile
@@ -3,12 +3,12 @@ RUN apk --no-cache add git
3
WORKDIR /go/src/build
4
COPY . .
5
6
+RUN mkdir -p dist
7
+
8
# https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/
-ARG TARGETOS
-ARG TARGETARCH
9
-RUN mkdir -p dist \
10
- && go mod vendor \
11
- && CGO_ENABLED=0 GOOS=$(TARGET_OS) GOARCH=$(ARCH) go build -o dist/helm-repo-updater .
+ARG TARGETOS TARGETARCH
+RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o dist/helm-repo-updater .
12
13
FROM alpine:3.14
14
ENV SSH_KNOWN_HOSTS="~/.ssh/known_hosts"
0 commit comments