Docker Images: Firefox with Geckodriver

# ------------------------------------------------------------------------------
# Base

FROM alpine:3.12.0

# ------------------------------------------------------------------------------
# Packages

RUN set -exo pipefail             && \
                                     \
    echo 'Install firefox'        && \
    apk add --update --no-cache \
      firefox

RUN set -exo pipefail                                                    && \
                                                                            \
    echo "Installing geckodriver"                                        && \
                                                                            \
    SHA=b78c87af6e3ce901db31faf71df791b12b1a430382bf4a67ab97b423cd1919c9 && \
    VERSION=v0.27.0                                                      && \
    PACKAGE=geckodriver-$VERSION-linux64.tar.gz                          && \
    BASE=https://github.com/mozilla/geckodriver/releases/download        && \
    DOWNLOAD=$BASE/$VERSION/$PACKAGE                                     && \
                                                                            \
    wget -O "$PACKAGE" "$DOWNLOAD"                                       && \
    sha256sum "$PACKAGE"                                                 && \
    echo "$SHA  $PACKAGE" | sha256sum -c -                               && \
    tar -xzf "$PACKAGE" -C /usr/local/bin                                && \
    rm -rf "$PACKAGE"

# ------------------------------------------------------------------------------
# Command

CMD ["/bin/sh"]