New ๐ŸŒŠ wave for @helm

Commit 372e39a1

372e39a1e43aMerged

Svyatoslav <[email protected]> ยท 5 years ago ยท 1 file ยท ~1 modified

Description

do not use GOPATH in Dockerfile

Details

Commit
372e39a1e43a
Parent
f0b8f9388581

DockerfilemodifiedView file

@@ -1,4 +1,4 @@
1-FROM golang:1.15-alpine AS builder
1+FROM golang:1.15-alpine3.13 AS builder
22
33 LABEL maintainer="[email protected]"
44 LABEL name="helmwave"
@@ -6,7 +6,7 @@
66 # enable Go modules support
77 ENV GO111MODULE=on
88
9-WORKDIR $GOPATH/src/github.com/zhilyaev/helmwave
9+WORKDIR helmwave
1010
1111 COPY go.mod go.sum ./
1212 RUN go mod download
@@ -14,9 +14,9 @@
1414 # Copy src code from the host and compile it
1515 COPY cmd cmd
1616 COPY pkg pkg
17-RUN CGO_ENABLED=0 GOOS=linux go build -a -o /helmwave github.com/zhilyaev/helmwave/cmd/helmwave
17+RUN CGO_ENABLED=0 GOOS=linux go build -a -o /helmwave ./cmd/helmwave
1818
19-FROM alpine:3.13.1
19+FROM alpine:3.13
2020 RUN apk --no-cache add ca-certificates
2121 COPY --from=builder /helmwave /bin
2222 ENTRYPOINT ["/bin/helmwave"]