Skip to content

Commit c199f55

Browse files
author
Jorge Turrado Ferrero
authored
fix: Fix environment vars (#24)
* fix: Fix envrionment vars Signed-off-by: Jorge Turrado <[email protected]>
1 parent 7456847 commit c199f55

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ RUN apk --no-cache add git
33
WORKDIR /go/src/build
44
COPY . .
55

6+
RUN mkdir -p dist
7+
68
# https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/
7-
ARG TARGETOS
8-
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 .
9+
ARG TARGETOS TARGETARCH
10+
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o dist/helm-repo-updater .
11+
1212

1313
FROM alpine:3.14
1414
ENV SSH_KNOWN_HOSTS="~/.ssh/known_hosts"

0 commit comments

Comments
 (0)