FROM alpine:3.6

MAINTAINER Rabin "https://github.com/shemic"

ENV CHINA_MIRRORS=http://mirrors.ustc.edu.cn/
ENV FAU_MIRRORS=http://ftp.fau.de/
ENV MIRRORS=$CHINA_MIRRORS

RUN sed -i "s/http:\/\/dl-cdn.alpinelinux.org/http:\/\/mirrors.ustc.edu.cn/g" /etc/apk/repositories && apk --no-cache --update add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && date && apk del tzdata && mkdir /entrypoint && mkdir /share

VOLUME ["/share"]

COPY v3.4/entrypoint.sh /entrypoint.sh
COPY v3.4/process.sh /entrypoint/process.sh

ENTRYPOINT ["/entrypoint.sh"]