forked from codegram/decidim-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.ci
28 lines (20 loc) · 907 Bytes
/
Dockerfile.ci
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
ARG FROM=decidim/decidim-monitor:latest
FROM $FROM
USER root
RUN apt-get update \
&& apt-get install -y unzip
ENV CHROMEDRIVER_RELEASE=2.33
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
RUN apt-get update && apt-get install -y google-chrome-stable
RUN CHROMEDRIVER_URL="http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_RELEASE/chromedriver_linux64.zip" \
&& curl --silent --show-error --location --fail --retry 3 --output /tmp/chromedriver_linux64.zip $CHROMEDRIVER_URL \
&& unzip /tmp/chromedriver_linux64.zip chromedriver -d /usr/local/bin \
&& rm /tmp/chromedriver_linux64.zip \
&& chromedriver --version
ENV MIX_ENV test
RUN mix deps.get
RUN mix deps.compile
RUN mix compile
ENTRYPOINT []
CMD mix test