-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (26 loc) · 1.08 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
FROM ruby:2.3.3
RUN curl -sL https://deb.nodesource.com/setup_4.x | bash -
RUN apt-get update -y
RUN apt-get install -y nodejs
RUN mkdir /exams
WORKDIR /exams
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" > /etc/apt/sources.list.d/pgdg.list
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN apt-get update
RUN apt-get install -y postgresql-client-9.4
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 && \
apt-get install -y google-chrome-stable && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update
RUN apt-get install -y unzip xvfb
RUN wget -N http://chromedriver.storage.googleapis.com/2.16/chromedriver_linux64.zip && \
unzip chromedriver_linux64.zip && \
chmod +x ./chromedriver && \
cp ./chromedriver /usr/local/share/ && \
ln -s /usr/local/share/chromedriver /usr/bin/chromedriver && \
rm ./chromedriver*
RUN mkdir /exams/src
WORKDIR /exams/src