Dockerfile 1021 Bytes
Newer Older
1
######################################################################
2
#
3
#	Waystone development Docker install.
4
#
5
#	Should be run by Docker-Compose.
6
#
7
#	(Used by the ./install script.)
8
#
9 10 11
#	Copyright © 2014-2015, Aral Balkan. © 2014-2015, Ind.ie.
#	Released with ♥ by Ind.ie under GNU AGPLv3 or later.
#	Free as in freedom. Please see the LICENSE file.
12
#
13 14
######################################################################

15
FROM node:0.12.0
16

17
RUN \
18 19
	npm install nodemon@1.4.0 -g && \
	npm install coffee-script@1.9.3 -g
20

21 22 23 24 25
#
# Add the package.json in the main folder (parent of the source folder)
# as we want the node_modules outside of the source folder (it slows
# down nodemon to an unusable degree).
#
26 27 28
WORKDIR /home/waystone
ADD package.json /home/waystone/package.json

29 30 31 32 33 34 35 36 37 38
#
# Run the installation script.
#
# Once we’ve implemented Pulse auto-configuration ala Heartbeat, we can simply do:
# npm install
#
ADD docker-node-install /home/waystone/docker-node-install
RUN ./docker-node-install

# CMD ["/bin/bash"]