Skip to content

Commit

Permalink
PMM-7 revert dockerfile changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk committed Nov 8, 2023
1 parent 6245e5b commit cb3db89
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
FROM alpine AS builder
RUN apk add --no-cache ca-certificates

FROM golang:alpine as builder2

RUN apk update && apk add make
RUN mkdir /source
COPY . /source
WORKDIR /source
RUN make init
RUN make build

FROM alpine AS final
FROM scratch AS final
USER 65535:65535
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder2 /source/mongodb_exporter /
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY ./mongodb_exporter /
EXPOSE 9216
ENTRYPOINT ["/mongodb_exporter"]

0 comments on commit cb3db89

Please sign in to comment.