Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Add 3.1.4-node_10.1.0 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
FROM node:10.1.0
LABEL maintainer "Sergio Lepore"

USER root

#============================================
# Common deps
#============================================
# - python-dev: watchman
#============================================
RUN apt-get -qqy update \
&& apt-get -qqy install \
python-dev=2.7.9-1 \
--no-install-recommends

#============================================
# Crappy Google Chrome dependency
#============================================
# Installs the latest crappy version of the
# crappy browser. Since Ember v2.16 it is
# configured by default in testem.
#============================================
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
&& apt-get -qqy update \
&& apt-get -qqy install \
google-chrome-stable \
--no-install-recommends

#============================================
# Watchman
#============================================
# The default file watcher.
#============================================
RUN cd /tmp/ \
&& git clone https:/facebook/watchman.git watchman \
&& cd watchman \
&& git checkout v4.9.0 \
&& ./autogen.sh \
&& ./configure \
&& make \
&& make install

#============================================
# Cleanup
#============================================
RUN rm -rf /var/lib/apt/lists/* \
/var/cache/apt/* \
/etc/apt/sources.list.d/google-chrome.list \
/tmp/watchman

#============================================
# Global Node.js packages
#============================================
# - ember-cli: the main protagonist of this
# Docker image.
#============================================
RUN yarn global add [email protected]

#============================================
# Run the whole thing as non-root from now on
#============================================
USER node

#============================================
# Default working directory
#============================================
WORKDIR /myapp

#============================================
# Ports being listened for connections
#============================================
# - 4200: devserver. You can access your app
# here.
# - 7020: livereload. Your app, while on
# development, will try to connect to
# this port. It will listen for a signal
# coming from the server indicating that
# something has changed and the browser
# needs a refresh.
# - 7357: TestEm. You can connect to this
# port with your preferred browser and
# tests will run there automatically
# (besides Google Chrome),
#============================================
EXPOSE 4200 7020 7357

#============================================
# Default command to be run
#============================================
CMD ["ember", "server"]
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

Loading