summaryrefslogtreecommitdiffstats
path: root/01-base-nodejs/Dockerfile
blob: aa5fd8f49fbd38f9e721358374f3b57a66953672 (plain)
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
37
38
39
40
41
42
43
44
45
46
FROM kolab/base:latest

ENV NODE_VERSION=0.12.8

#RUN yum -y install \
#        bzip2 \
#        gcc-c++ \
#        git \
#        libjpeg-turbo-utils \
#        libpng-devel \
#        make \
#        tar \
#        wget && \
#    yum clean all
#
#RUN cd /tmp && \
#    wget http://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}.tar.gz && \
#    tar zxvf node-v${NODE_VERSION}.tar.gz && \
#    rm -f node-v${NODE_VERSION}.tar.gz && \
#    cd node-v${NODE_VERSION}/ && \
#    ./configure --prefix=/usr && \
#    CXX="g++ -Wno-unused-local-typedefs" make && \
#    CXX="g++ -Wno-unused-local-typedefs" make install && \
#    cd /tmp && \
#    rm -rf /tmp/node-v* && \
#    npm config set registry http://registry.npmjs.org/ && \
#    npm install --verbose -g bower ember-cli npm && \
#    rm -rf /root/.npm/ && \
#    printf '\n# Node.js\nexport PATH="node_modules/.bin:$PATH"' >> /root/.bashrc

RUN yum -y install \
        libjpeg-turbo-utils \
        libpng-devel \
        nodejs \
        npm \
        tar && \
    yum clean all

RUN npm config set registry http://registry.npmjs.org/

RUN npm update --verbose -g \
        node-gyp \
        npm && \
    npm install --verbose -g \
        bower && \
    rm -rf /root/.npm/