-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ec64b48
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# | ||
# Geckodriver Dockerfile | ||
# | ||
|
||
FROM blueimp/basedriver | ||
|
||
# Add the Firefox release channel of the Debian Mozilla team: | ||
RUN echo 'deb http://mozilla.debian.net/ jessie-backports firefox-release' >> \ | ||
/etc/apt/sources.list \ | ||
&& curl -sL https://mozilla.debian.net/archive.asc | apt-key add - | ||
|
||
# Install Firefox: | ||
RUN export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get update \ | ||
&& apt-get install --no-install-recommends --no-install-suggests -y \ | ||
firefox \ | ||
# Remove obsolete files: | ||
&& apt-get clean \ | ||
&& rm -rf \ | ||
/tmp/* \ | ||
/usr/share/doc/* \ | ||
/var/cache/* \ | ||
/var/lib/apt/lists/* \ | ||
/var/tmp/* | ||
|
||
# Install geckodriver: | ||
RUN export BASE_URL=https://github.com/mozilla/geckodriver/releases/download \ | ||
&& export VERSION=$(curl -sL \ | ||
https://api.github.com/repos/mozilla/geckodriver/releases/latest | \ | ||
grep tag_name | cut -d '"' -f 4) \ | ||
&& curl -sL \ | ||
$BASE_URL/$VERSION/geckodriver-$VERSION-linux64.tar.gz | tar -xz \ | ||
&& mv geckodriver /usr/local/bin/geckodriver | ||
|
||
USER webdriver | ||
|
||
CMD ["geckodriver", "--host", "0.0.0.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Geckodriver Dockerfile |