Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. # Use an ubuntu base image
  2. FROM ubuntu:14.04
  3.  
  4. # Install Node.js and npm (this will install the latest version for ubuntu)
  5. RUN apt-get update
  6. RUN apt-get -y install curl
  7. RUN curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
  8. RUN apt-get -y install nodejs
  9. RUN apt-get -y install git
  10.  
  11. # Bundle app source (note: all of my configuration files/folders are in the current directory along with the Dockerfile)
  12.  
  13. COPY . /src
  14.  
  15. Install app dependencies
  16.  
  17. #WORKDIR /src
  18.  
  19. RUN npm install
  20. RUN npm install -g bower
  21. RUN bower install --allow-root
  22. RUN npm install -g grunt
  23. RUN npm install -g grunt-cli
  24.  
  25. #What port to expose?
  26.  
  27. EXPOSE 1234
  28.  
  29. #Run grunt on container start
  30.  
  31. CMD grunt
  32.  
  33. docker build -t test/test .
  34.  
  35. docker run -p 1234:1234 -d test/test
  36.  
  37. docker run -p 1234:1234 -v //c/Users/username/directory:/src -d test/test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement