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 builder1+
FROM golang:1.15-alpine3.13 AS builder22
44
LABEL name="helmwave"@@ -6,7 +6,7 @@
66
# enable Go modules support77
ENV GO111MODULE=on88
9-
WORKDIR $GOPATH/src/github.com/zhilyaev/helmwave9+
WORKDIR helmwave1010
1111
COPY go.mod go.sum ./1212
RUN go mod download@@ -14,9 +14,9 @@
1414
# Copy src code from the host and compile it1515
COPY cmd cmd1616
COPY pkg pkg17-
RUN CGO_ENABLED=0 GOOS=linux go build -a -o /helmwave github.com/zhilyaev/helmwave/cmd/helmwave17+
RUN CGO_ENABLED=0 GOOS=linux go build -a -o /helmwave ./cmd/helmwave1818
19-
FROM alpine:3.13.119+
FROM alpine:3.132020
RUN apk --no-cache add ca-certificates2121
COPY --from=builder /helmwave /bin2222
ENTRYPOINT ["/bin/helmwave"]