lathonez/clicker

View on GitHub
docker/Dockerfile

Summary

Maintainability
Test Coverage
FROM ubuntu:16.04

WORKDIR /root/clicker

# copy source code from build context
COPY . .

# Squash not available on docker cloud so everything is run in one command
# Install some dependencies (git is needed for circle checkout)
RUN apt-get update && \
  apt install -y wget git curl && \
  curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
  apt-get install -y nodejs && \
\
# Install Ionic global deps \
npm install -g ionic@3.19.0 cordova@8.0.0 && \
\
# Install Chrome \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
sh -c 'echo "deb [arch=amd64] http://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 && \
\
# Install clicker deps (needs after chrome for webdriver) \
npm install --unsafe-perm && \
\
# Install Xvfb \
apt-get install -y xvfb && \
\
# Cleanup \
apt-get remove -y curl && \
  apt-get autoremove && \
  rm -rf /var/lib/apt/lists/* \

CMD ['echo', 'Done!']