-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dockerfile for node 10 and ember-cli 2.16.2
- Loading branch information
1 parent
39de974
commit 507961c
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
|
||
FROM node:10.11.0 | ||
MAINTAINER Dan Lynn <docker@danlynn.org> | ||
|
||
# ember server on port 4200 | ||
# livereload server on port 7020 (changed in v2.17.0 from 49153) | ||
# test server on port 7357 | ||
EXPOSE 4200 7020 7357 | ||
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.9.0 &&\ | ||
./autogen.sh &&\ | ||
./configure &&\ | ||
make &&\ | ||
make install | ||
|
||
# install bower | ||
RUN \ | ||
npm install -g bower@1.8.4 | ||
|
||
# install chrome for default testem config (as of 2.15.0) | ||
RUN \ | ||
apt-get update &&\ | ||
apt-get install -y \ | ||
apt-transport-https \ | ||
gnupg \ | ||
--no-install-recommends &&\ | ||
curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - &&\ | ||
echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list &&\ | ||
apt-get update &&\ | ||
apt-get install -y \ | ||
google-chrome-stable \ | ||
--no-install-recommends | ||
|
||
# tweak chrome to run with --no-sandbox option | ||
RUN \ | ||
sed -i 's/"$@"/--no-sandbox "$@"/g' /opt/google/chrome/google-chrome | ||
|
||
# set container bash prompt color to blue in order to | ||
# differentiate container terminal sessions from host | ||
# terminal sessions | ||
RUN \ | ||
echo 'PS1="\[\\e[0;94m\]${debian_chroot:+($debian_chroot)}\\u@\\h:\\w\\\\$\[\\e[m\] "' >> ~/.bashrc | ||
|
||
# install ember-cli | ||
RUN \ | ||
npm install -g ember-cli@2.16.2 |