Skip to content

Commit

Permalink
Changes to improve node dockerfile and to resolve msanand#1
Browse files Browse the repository at this point in the history
  • Loading branch information
longieirl committed Apr 5, 2015
1 parent db15eeb commit e8fabb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 0 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,18 @@ node1:
- redis
ports:
- "8080"
volumes:
- node:/src
node2:
build: ./node
links:
- redis
ports:
- "8080"
volumes:
- node:/src
node3:
build: ./node
links:
- redis
ports:
- "8080"
volumes:
- node:/src
redis:
image: redis
ports:
Expand Down
7 changes: 4 additions & 3 deletions node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ MAINTAINER Anand Mani Sankar
RUN apt-get update

# Install Node.js and other dependencies
RUN apt-get -y install curl
RUN curl -sL https://deb.nodesource.com/setup | sudo bash -
RUN apt-get -y install python build-essential nodejs
RUN apt-get update && \
apt-get -y install curl && \
curl -sL https://deb.nodesource.com/setup | sudo bash - && \
apt-get -y install python build-essential nodejs

# Install nodemon
RUN npm install -g nodemon
Expand Down

0 comments on commit e8fabb4

Please sign in to comment.