ADD alpine-minirootfs-3.21.0-x86_64.tar.gz / # buildkit |
CMD ["/bin/sh"] |
LABEL maintainer=seepine <seepine@outlook.com> |
ENV NTP_SERVER=pool.ntp.org TZ=Asia/Shanghai |
RUN /bin/sh -c echo "ntpd -d -q -n -p \$NTP_SERVER" > /usr/local/bin/ntp.sh && chmod +x /usr/local/bin/ntp.sh && echo "*/30 * * * * ntp.sh" >> /etc/crontabs/root && apk add --no-cache tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone && apk del tzdata # buildkit |
LABEL maintainer=seepine <seepine@outlook.com> |
COPY --chown=root:root ./wait-for-it/ /usr/local/bin # buildkit |
RUN /bin/sh -c chmod -R +x /usr/local/bin && apk add --no-cache bash # buildkit |
ENV WAIT_TIMEOUT=30 |
LABEL maintainer=seepine <seepine@outlook.com> |
ARG JAVA_VERSION=8-jre |
RUN |1 JAVA_VERSION=8-jre /bin/sh -c apk add --no-cache openjdk${JAVA_VERSION} ttf-dejavu fontconfig curl # buildkit |