Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.00 KB | None | 0 0
  1. FROM       ubuntu:16.04
  2. MAINTAINER root
  3.  
  4. # Installation:
  5. RUN apt-get update && apt-get install -y build-essential python3.7
  6. RUN apt-get install -y python-setuptools
  7. RUN apt-get install -y python-pip
  8. RUN apt-get install -y nano
  9. RUN apt-get install -y telnet
  10. RUN apt-get install -y vim
  11.  
  12. # Import MongoDB public GPG key AND create a MongoDB list file
  13. RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv 7F0CEB10
  14. RUN echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/10gen.list
  15.  
  16. # Update apt-get sources AND install MongoDB
  17. RUN apt-get update && apt-get install -y mongodb-org
  18.  
  19. # Create the MongoDB data directory
  20. RUN mkdir -p /data/db
  21.  
  22. # Create the MongoDB data directory
  23. RUN mkdir -p /data/code
  24.  
  25. RUN pip install pymongo
  26.  
  27. # Expose port #27017 from the container to the host
  28. EXPOSE 27017
  29.  
  30. USER root
  31. WORKDIR /home/container
  32.  
  33. # Set /usr/bin/mongod as the dockerized entry-point application
  34. ENTRYPOINT ["/bin/bash"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement