You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.7 KiB

  1. FROM ubuntu:latest
  2. RUN apt-get update -y
  3. RUN apt-get install git -y
  4. RUN apt-get install -y curl
  5. RUN apt-get install -y wget
  6. #install Nodejs
  7. RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
  8. RUN apt-get install -y nodejs
  9. RUN apt-get install -y build-essential
  10. #install MongoDB
  11. RUN \
  12. apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 && \
  13. echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.4.list && \
  14. apt-get update && \
  15. apt-get install -y mongodb-org
  16. #install bower
  17. RUN npm install -g bower
  18. RUN npm install -g forever
  19. #donwload commonroutesServer
  20. RUN git clone https://github.com/arnaucode/commonroutesServer.git
  21. RUN cd commonroutesServer
  22. RUN npm install
  23. #install Go
  24. #ENV GOVERSION 1.6.2
  25. #ENV GOROOT /opt/go
  26. #ENV GOPATH /root/.go
  27. #RUN cd /opt && wget https://storage.googleapis.com/golang/go${GOVERSION}.linux-amd64.tar.gz && \
  28. # tar zxf go${GOVERSION}.linux-amd64.tar.gz && rm go${GOVERSION}.linux-amd64.tar.gz && \
  29. # ln -s /opt/go/bin/go /usr/bin/ && \
  30. # mkdir $GOPATH
  31. #download goImgServer
  32. #RUN git clone https://github.com/arnaucode/goImgServer.git
  33. #run mongodb service
  34. CMD service mongod start
  35. #CMD cd goImgServer && \
  36. # ./goImgServer &
  37. #CMD cd
  38. CMD cd commonroutesServer && \
  39. forever start server.js
  40. #commands to use:
  41. #docker build -t containername .
  42. #docker run -ti containername /bin/bash
  43. #docker start -ti containername /bin/bash
  44. #docker ps -a
  45. #docker rm containernametodelete
  46. #docker images
  47. #docker rmi imagenametodelete
  48. # delete all containers
  49. #docker rm $(docker ps -a -q)
  50. # delete all images
  51. #docker rmi $(docker images -q)