alpine 镜像
- 软件源修改为国内的
- 修改时区为国内
- 安装字体
FROM openjdk:8-alpine
ENV LANG en_US.UTF-8
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \
&& apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone && apk del tzdata \
&& apk add --update ttf-dejavu fontconfig && rm -rf /var/cache/apk/*
标签:apk,openjdk,etc,&&,镜像,alpine
From: https://www.cnblogs.com/iyiluo/p/16968050.html