Skip to content

Commit

Permalink
Merge pull request #2 from cmorent/master
Browse files Browse the repository at this point in the history
New version of Dockerfile
  • Loading branch information
Andre Paulos authored Jan 21, 2020
2 parents 85c96d7 + 6ebf8be commit 6bd5fe9
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,15 @@
FROM alpine:3.7
FROM mongo:latest

RUN apk add --update \
RUN apt-get update && apt-get install -y \
bash \
mongodb-tools \
curl \
python \
py-pip \
py-cffi \
&& pip install --upgrade pip \
&& apk add --virtual build-deps \
gcc \
libffi-dev \
python-dev \
linux-headers \
musl-dev \
openssl-dev \
&& pip install gsutil \
&& apk del build-deps \
&& rm -rf /var/cache/apk/*
curl

RUN echo "deb http://packages.cloud.google.com/apt cloud-sdk-xenial main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \
apt-get update && \
apt-get install -y google-cloud-sdk

ADD ./backup.sh /mongodb-gcs-backup/backup.sh
WORKDIR /mongodb-gcs-backup

RUN chmod +x /mongodb-gcs-backup/backup.sh

Expand Down

0 comments on commit 6bd5fe9

Please sign in to comment.