forked from rpadam/docker-selenium-dart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (28 loc) · 1.02 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
FROM selenium/standalone-chrome-debug:3.0.1
MAINTAINER Raphael Adam <[email protected], [email protected]>
LABEL Description="This image contains: Selenium-HQ with Chrome; the Dart SDK; and Sauce Connect"
ENV CHANNEL stable
ENV SDK_VERSION latest
ENV ARCHIVE_URL https://storage.googleapis.com/dart-archive/channels/$CHANNEL/release/$SDK_VERSION
ENV SC_VERSION 4.4.6
ENV PATH $PATH:/usr/lib/dart/bin
RUN apt-get update && apt-get install -y \
git \
ssh \
unzip \
wget \
curl \
imagemagick \
ffmpeg \
xvfb \
openjdk-8-jre-headless \
&& apt-get clean
RUN wget -O ./sauce-connect.tar.gz https://saucelabs.com/downloads/sc-$SC_VERSION-linux.tar.gz \
&& tar -zxvf sauce-connect.tar.gz \
&& mv sc-$SC_VERSION-linux/bin/sc /usr/local/bin/ \
&& rm -rf sauce-connect.tar.gz \
&& rm -rf sc-$SC_VERSION-linux/
RUN wget $ARCHIVE_URL/sdk/dartsdk-linux-x64-release.zip \
&& unzip dartsdk-linux-x64-release.zip \
&& cp dart-sdk/* /usr/local -r \
&& rm -rf dartsdk-linux-x64-release.zip