File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
FROM golang:1.12 as builder
2
2
3
- RUN mkdir -p /go/src/github.com/stefanprodan/k8s- podinfo/
3
+ RUN mkdir -p /podinfo/
4
4
5
- WORKDIR /go/src/github.com/stefanprodan/k8s- podinfo
5
+ WORKDIR /podinfo
6
6
7
7
COPY . .
8
8
9
- RUN go test $(go list ./... | grep -v integration | grep -v /vendor/ | grep -v /template/) -cover
9
+ RUN GOPROXY=https://proxy.golang.org go mod download
10
10
11
11
RUN GIT_COMMIT=$(git rev-list -1 HEAD) && \
12
12
CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w \
13
- -X github.com/stefanprodan/k8s- podinfo/pkg/version.REVISION=${GIT_COMMIT}" \
14
- -a -installsuffix cgo -o podinfo ./ cmd/podinfo
13
+ -X github.com/stefanprodan/podinfo/pkg/version.REVISION=${GIT_COMMIT}" \
14
+ -a -o bin/ podinfo cmd/podinfo/*
15
15
16
16
RUN GIT_COMMIT=$(git rev-list -1 HEAD) && \
17
17
CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w \
18
- -X github.com/stefanprodan/k8s- podinfo/pkg/version.REVISION=${GIT_COMMIT}" \
19
- -a -installsuffix cgo -o podcli ./ cmd/podcli
18
+ -X github.com/stefanprodan/podinfo/pkg/version.REVISION=${GIT_COMMIT}" \
19
+ -a -o bin/ podcli cmd/podcli/*
20
20
21
21
FROM alpine:3.10
22
22
@@ -27,8 +27,8 @@ RUN addgroup -S app \
27
27
28
28
WORKDIR /home/app
29
29
30
- COPY --from=builder /go/src/github.com/stefanprodan/k8s- podinfo/podinfo .
31
- COPY --from=builder /go/src/github.com/stefanprodan/k8s- podinfo/podcli /usr/local/bin/podcli
30
+ COPY --from=builder /podinfo/bin /podinfo .
31
+ COPY --from=builder /podinfo/bin /podcli /usr/local/bin/podcli
32
32
COPY ./ui ./ui
33
33
RUN chown -R app:app ./
34
34
You can’t perform that action at this time.
0 commit comments