-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
37 lines (29 loc) · 1.2 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
# Dart SDK, Sauce Connect, Docker Compose
FROM ubuntu:trusty
MAINTAINER Brent Schuele <brent.schuele@workiva.com>
LABEL Description="This image contains the Dart SDK, Sauce Connect, and Docker Compose"
ENV CHANNEL stable
ENV SDK_VERSION 1.15.0
ENV ARCHIVE_URL https://storage.googleapis.com/dart-archive/channels/$CHANNEL/release/$SDK_VERSION
ENV PATH $PATH:/usr/lib/dart/bin
ENV SC_VERSION 4.3.13
ENV COMPOSE_VERSION 1.7.1
RUN apt-get update && apt-get install -y \
git \
ssh \
unzip \
wget \
curl \
&& apt-get clean
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
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_VERSION-linux/
RUN curl -fsSL https://get.docker.com/ | sh \
&& curl -L https://github.com/docker/compose/releases/download/$COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose