Public Repository

Last pushed: 2 years ago
Short Description
dockerfile - mongodb
Full Description

FROM ubuntu
MAINTAINER Swapnil Pande, swapnilpande96@gmail.com

RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
RUN echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | tee /etc/apt/$
RUN apt-get update -y
RUN apt-get update && apt-get install -y mongodb-org
RUN mkdir -p /data/db && chown -R mongodb:mongodb /data/db

EXPOSE 27017
ENTRYPOINT ["/usr/bin/mongod"]

Docker Pull Command
Owner
swap2993

Comments (0)