From 507961c85dfb1d11d129979cc11fb09bdbaa85cb Mon Sep 17 00:00:00 2001 From: Abe Petrillo Date: Tue, 26 Mar 2019 11:15:07 -0400 Subject: [PATCH] Add dockerfile for node 10 and ember-cli 2.16.2 --- ember-cli/Dockerfile | 62 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 ember-cli/Dockerfile diff --git a/ember-cli/Dockerfile b/ember-cli/Dockerfile new file mode 100644 index 0000000..6a53226 --- /dev/null +++ b/ember-cli/Dockerfile @@ -0,0 +1,62 @@ + +FROM node:10.11.0 +MAINTAINER Dan Lynn + +# 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