Skip to content

Commit f1815eb

Browse files
committed
dockerfile for multistage builds using scratch image
1 parent 37509fc commit f1815eb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: scratch.dockerfile

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,14 @@ RUN go get .
88

99
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
1010

11-
# install ca-certificates
12-
#RUN apk --update add ca-certificates
13-
14-
1511
# deployment image
1612
FROM scratch
1713

1814
# RUN apk --no-cache add ca-certificates
1915

2016
LABEL author="Maina Wycliffe"
2117

18+
# copy ca-certificates from builder
2219
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
2320

2421
WORKDIR /bin/

0 commit comments

Comments
 (0)