FROM anapsix/alpine-java:8u201b09_jdk_unlimited

ENV TZ Asia/Shanghai

# vi to vim
RUN apk add vim && \
  rm -rf /usr/bin/vi && \
  ln -s /usr/bin/vim /usr/bin/vi

RUN set -eux && \
    sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
    apk add --no-cache --update tzdata curl && \
    apk add --no-cache --update busybox-extras && \
    apk add --no-cache --update chromium-chromedriver chromium && \
    ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
    echo $TZ > /etc/timezone
    