Skip to content

Commit cb3db89

Browse files
committed
PMM-7 revert dockerfile changes.
1 parent 6245e5b commit cb3db89

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

Dockerfile

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
FROM alpine AS builder
22
RUN apk add --no-cache ca-certificates
33

4-
FROM golang:alpine as builder2
5-
6-
RUN apk update && apk add make
7-
RUN mkdir /source
8-
COPY . /source
9-
WORKDIR /source
10-
RUN make init
11-
RUN make build
12-
13-
FROM alpine AS final
4+
FROM scratch AS final
145
USER 65535:65535
15-
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
16-
COPY --from=builder2 /source/mongodb_exporter /
6+
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
7+
COPY ./mongodb_exporter /
178
EXPOSE 9216
189
ENTRYPOINT ["/mongodb_exporter"]

0 commit comments

Comments
 (0)