-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (20 loc) · 931 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
FROM cimg/ruby:3.1.2-browsers
# Install mysql-client for databases
# and node/yarn for Webpacker
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - \
&& sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' \
&& curl -sL https://deb.nodesource.com/setup_12.x | sudo bash - \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list \
&& sudo apt-get update \
&& sudo apt-get install -y \
default-mysql-client \
ffmpeg \
nodejs \
google-chrome-stable \
yarn \
phantomjs \
&& sudo rm -rf /var/lib/apt/lists/*
# the base image comes with an older version of Node that takes precedence given the path
RUN sudo rm /usr/local/bin/node
WORKDIR /home/circleci