File tree Expand file tree Collapse file tree 4 files changed +5
-37
lines changed
Expand file tree Collapse file tree 4 files changed +5
-37
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ addons:
1313 - google-chrome-stable
1414
1515dart :
16+ - 2.3.2
17+ - stable
1618 - dev
17- - 2.4.0
1819
1920with_content_shell : false
2021
Original file line number Diff line number Diff line change 11FROM google/dart:2.3
2-
3- RUN apt-get update -qq
4- RUN apt-get update && apt-get install -y \
5- # wget is used to install chrome and chromedriver
6- wget \
7- # unzip is used to unzip chromedriver
8- unzip \
9- # xvfb is used to run chromedriver headless
10- xvfb \
11- && rm -rf /var/lib/apt/lists/*
12-
13- # Install chrome
14- RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
15- RUN echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | tee /etc/apt/sources.list.d/google-chrome.list
16- RUN apt-get -qq update && apt-get install -y google-chrome-stable
17- RUN mv /usr/bin/google-chrome-stable /usr/bin/google-chrome
18- RUN sed -i --follow-symlinks -e 's/\"\$ HERE\/ chrome\" /\"\$ HERE\/ chrome\" --no-sandbox/g' /usr/bin/google-chrome
19-
20- # Install chromedriver
21- WORKDIR /chromedriver/
22- RUN wget http://chromedriver.storage.googleapis.com/2.46/chromedriver_linux64.zip
23- RUN unzip chromedriver_linux64.zip
24- RUN mv chromedriver /usr/bin/chromedriver
25- ENV CHROMEDRIVER_BINARY="/usr/bin/google-chrome"
26- ENV CHROMEDRIVER_ARGS="--no-sandbox"
27- ENV DISPLAY=":99.0"
28- RUN Xvfb :99.0 -screen 0 800x600x16 &
29-
30- RUN /usr/bin/google-chrome --version
31-
2+ RUN apt-get update -qq && rm -rf /var/lib/apt/lists/*
323WORKDIR /build/
334ADD pubspec.yaml .
345RUN pub get
35- ADD . .
36- RUN dartanalyzer .
37- RUN dartfmt -n --set-exit-if-changed .
38- RUN pub run test
39-
406ARG BUILD_ARTIFACTS_BUILD=/build/pubspec.lock
417FROM scratch
Original file line number Diff line number Diff line change 11concurrency : 1
22reporter : expanded
3+ retry : 2
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ authors:
12121313
1414environment :
15- sdk : " >=2.3.0 <3.0.0"
15+ sdk : " >=2.3.2 <3.0.0"
1616
1717dependencies :
1818 args : ^1.5.1
You can’t perform that action at this time.
0 commit comments