| ADD alpine-minirootfs-3.23.3-aarch64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| LABEL maintainer=linkinstar@apache.org |
| ARG TIMEZONE |
| ENV TIMEZONE=Asia/Shanghai |
| RUN |1 TIMEZONE=Asia/Shanghai /bin/sh -c sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && apk update && apk --no-cache add bash ca-certificates curl dumb-init gettext openssh sqlite gnupg tzdata && ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime && echo "${TIMEZONE}" > /etc/timezone # buildkit |
| COPY /usr/bin/answer /usr/bin/answer # buildkit |
| COPY /data /data # buildkit |
| COPY /script/entrypoint.sh /entrypoint.sh # buildkit |
| RUN |1 TIMEZONE=Asia/Shanghai /bin/sh -c chmod 755 /entrypoint.sh # buildkit |
| VOLUME [/data] |
| EXPOSE [80/tcp] |
| ENTRYPOINT ["/entrypoint.sh"] |