File tree 3 files changed +5
-9
lines changed
3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 1
1
FROM golang as builder
2
2
3
- WORKDIR /go/github.com/coding-latte/golang-docker-multistage-build-demo
3
+ WORKDIR /go/src/ github.com/coding-latte/golang-docker-multistage-build-demo
4
4
5
5
COPY . .
6
6
@@ -15,7 +15,7 @@ RUN apk --no-cache add ca-certificates
15
15
LABEL author="Maina Wycliffe"
16
16
17
17
WORKDIR /root/
18
- COPY --from=builder /go/github.com/coding-latte/golang-docker-multistage-build-demo/app .
18
+ COPY --from=builder /go/src/ github.com/coding-latte/golang-docker-multistage-build-demo/app .
19
19
20
20
CMD [ "./app" ]
21
21
Original file line number Diff line number Diff line change 1
1
FROM golang
2
2
3
- WORKDIR /go/github.com/coding-latte/golang-docker-multistage-build-demo
3
+ WORKDIR /go/src/ github.com/coding-latte/golang-docker-multistage-build-demo
4
4
5
5
COPY . .
6
6
Original file line number Diff line number Diff line change 1
1
FROM golang as builder
2
2
3
- WORKDIR /go/github.com/coding-latte/golang-docker-multistage-build-demo
3
+ WORKDIR /go/src/ github.com/coding-latte/golang-docker-multistage-build-demo
4
4
5
5
COPY . .
6
6
@@ -11,16 +11,12 @@ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
11
11
# deployment image
12
12
FROM scratch
13
13
14
- # RUN apk --no-cache add ca-certificates
15
-
16
- LABEL author="Maina Wycliffe"
17
-
18
14
# copy ca-certificates from builder
19
15
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
20
16
21
17
WORKDIR /bin/
22
18
23
- COPY --from=builder /go/github.com/coding-latte/golang-docker-multistage-build-demo/app .
19
+ COPY --from=builder /go/src/ github.com/coding-latte/golang-docker-multistage-build-demo/app .
24
20
25
21
CMD [ "./app" ]
26
22
You can’t perform that action at this time.
0 commit comments