Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Use an ubuntu base image
- FROM ubuntu:14.04
- # Install Node.js and npm (this will install the latest version for ubuntu)
- RUN apt-get update
- RUN apt-get -y install curl
- RUN curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
- RUN apt-get -y install nodejs
- RUN apt-get -y install git
- # Bundle app source (note: all of my configuration files/folders are in the current directory along with the Dockerfile)
- COPY . /src
- Install app dependencies
- #WORKDIR /src
- RUN npm install
- RUN npm install -g bower
- RUN bower install --allow-root
- RUN npm install -g grunt
- RUN npm install -g grunt-cli
- #What port to expose?
- EXPOSE 1234
- #Run grunt on container start
- CMD grunt
- docker build -t test/test .
- docker run -p 1234:1234 -d test/test
- docker run -p 1234:1234 -v //c/Users/username/directory:/src -d test/test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement