-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathDockerfile
38 lines (31 loc) · 856 Bytes
/
Dockerfile
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
FROM node:6.11.2
MAINTAINER Dan Lynn <docker@danlynn.org>
# ember server on port 4200
# livereload server on port 49153 (changed in v2.11.1 from 49152)
EXPOSE 4200 49153
WORKDIR /myapp
# run ember server on container start
CMD ["ember", "server"]
# Install watchman build dependencies
RUN \
apt-get update -y && \
apt-get install -y python-dev
# install watchman
# Note: See the README.md to find out how to increase the
# fs.inotify.max_user_watches value so that watchman will
# work better with ember projects.
RUN \
git clone https://github.com/facebook/watchman.git &&\
cd watchman &&\
git checkout v4.7.0 &&\
./autogen.sh &&\
./configure &&\
make &&\
make install
# Install ember dev dependencies
RUN \
npm install -g bower@1.8.0 &&\
npm install -g phantomjs@2.1.7
# Install ember-cli
RUN \
npm install -g ember-cli@2.14.2