forked from ric03uec/ubuntu1204_nodejs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (25 loc) · 864 Bytes
/
Dockerfile
File metadata and controls
36 lines (25 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM shipimg/ubuntu1204_base:latest
# Install a default nodejs for the system
RUN add-apt-repository -y ppa:chris-lea/node.js && \
apt-get update && \
apt-get -y upgrade &&\
apt-get install -yq nodejs \
samba \
gettext \
ca-certificates \
python-dev \
curl;
RUN pip install awsebcli awscli;
# Force NVM_DIR so the installations go to the right place
ENV NVM_DIR /root/.nvm
# Install nvm
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.17.2/install.sh | bash
# Preinstall common node versions
#RUN . /root/.nvm/nvm.sh && nvm install 0.8;
#RUN . /root/.nvm/nvm.sh && nvm install 0.10;
#RUN . /root/.nvm/nvm.sh && nvm install 0.11;
RUN . /root/.nvm/nvm.sh && nvm install 0.12;
#RUN . /root/.nvm/nvm.sh && nvm alias default 0.12;
RUN npm install -g npm@v3.x-latest
RUN npm install gulpjs/gulp-cli#4.0 bower pm2 -g
CMD [ "node" ]