Skip to content

Commit

Permalink
Merge pull request #11 from iheb-chakroun/master
Browse files Browse the repository at this point in the history
mongo: use mongodb-tools 100.5.0
  • Loading branch information
xaviermichel authored Oct 14, 2021
2 parents 93965b0 + 0315f54 commit fca2e7c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ RUN go mod vendor
ADD cmd ./cmd
ADD pkg ./pkg

ENV CGO_ENABLED=0

RUN cd cmd && go build -o /tmp/mongodb-backups

FROM alpine:3.9
FROM debian:10-slim

RUN apt-get update && apt-get install curl -y

COPY --from=builder /tmp/mongodb-backups /bin/mongodb-backups
ENV MONGODB_TOOLS_VERSION 4.0.5-r0

RUN apk add --no-cache ca-certificates mongodb-tools=${MONGODB_TOOLS_VERSION}
RUN curl -o mongodb-tools.deb https://fastdl.mongodb.org/tools/db/mongodb-database-tools-debian10-x86_64-100.5.0.deb && apt install ./mongodb-tools.deb && rm mongodb-tools.deb
RUN rm -rf /var/cache/apt

CMD mongodb-backups

0 comments on commit fca2e7c

Please sign in to comment.