forked from dockerfile/nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (24 loc) · 651 Bytes
/
Dockerfile
File metadata and controls
28 lines (24 loc) · 651 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
#
# Node.js Dockerfile
#
# based on https://github.com/dockerfile/nodejs
#
# Pull base image.
FROM mikeholczer/docker-armhf-python
# Install Node.js
WORKDIR /tmp
RUN wget http://nodejs.org/dist/v0.12.0/node-v0.12.0.tar.gz
RUN tar xvzf node-v0.12.0.tar.gz
RUN rm -f node-v0.12.0.tar.gz
WORKDIR /tmp/node-v0.12.0
RUN ./configure
RUN CXX="g++ -Wno-unused-local-typedefs" make
RUN CXX="g++ -Wno-unused-local-typedefs" make install
WORKDIR /tmp
RUN rm -rf /tmp/node-v*
RUN npm install -g npm
RUN echo '\n# Node.js\nexport PATH="node_modules/.bin:$PATH"' >> /root/.bashrc
# Define working directory.
WORKDIR /data
# Define default command.
CMD ["bash"]