-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (30 loc) · 1.15 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
FROM ruby:2.6.1
ENV TZ=Asia/Tokyo
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
RUN \
apt-get update && \
apt-get install -y \
unzip \
nodejs \
mysql-client \
postgresql-client \
sqlite3 \
--no-install-recommends && rm -rf /var/lib/apt/lists/*
ENV RAILS_VERSION 5.2.2
RUN gem install rails --version "$RAILS_VERSION"
ENV CHROMEDRIVER_VERSION 75.0.3770.8
RUN \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
wget http://chromedriver.storage.googleapis.com/"$CHROMEDRIVER_VERSION"/chromedriver_linux64.zip && \
unzip chromedriver_linux64.zip && \
chmod +x chromedriver && \
mv -f chromedriver /usr/local/share/chromedriver && \
ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver && \
ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
RUN \
apt-get update && \
apt-get install -y \
google-chrome-stable \
xvfb \
--no-install-recommends && rm -rf /var/lib/apt/lists/*