-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 689 Bytes
/
Dockerfile
File metadata and controls
23 lines (17 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:14.04
# install node and some other items
RUN apt-get update -q
RUN apt-get install -qy npm curl iperf ssh htop
RUN command -v node >/dev/null 2>&1 || { ln -s /usr/bin/nodejs /usr/bin/node; }
# the node dependencies for our node server app
# using caching suggestions per http://bitjudo.com/blog/2014/03/13/building-efficient-dockerfiles-node-dot-js/
ADD ./server/package.json /tmp/package.json
RUN cd /tmp && npm install
# put the shell scripts in place
ADD ./sbin /usr/local/sbin
# our node server app
ADD ./server /server
RUN cp -r /tmp/node_modules /server/.
# expose port 80 for the node server
EXPOSE 80 5001
CMD ["/usr/local/sbin/simple-container-benchmarks-init"]