forked from mupkoo/rails-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (40 loc) · 1.46 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM ruby:2.6.0
MAINTAINER Mirko Akov
# Initial setup
RUN \
curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
apt-get update -yq && \
apt-get install -y \
apt-transport-https \
build-essential \
cmake \
nodejs \
software-properties-common \
unzip \
postgresql-client
# Install Chrome
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.list && \
apt-get update -yqqq && \
apt-get install -y google-chrome-stable > /dev/null 2>&1 && \
sed -i 's/"$@"/--no-sandbox "$@"/g' /opt/google/chrome/google-chrome
# Install chromedriver
RUN \
wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip && \
unzip /tmp/chromedriver.zip chromedriver -d /usr/bin/ && \
rm /tmp/chromedriver.zip && \
chmod ugo+rx /usr/bin/chromedriver
# Install yarn
RUN \
wget -q -O - https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list && \
apt-get update -yq && \
apt-get install -y yarn
# Install dpl and heroku-cli
RUN \
add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./" && \
curl -L https://cli-assets.heroku.com/apt/release.key | apt-key add - && \
apt-get update -yq && \
apt-get install heroku -y && \
gem install dpl