Dockerfile openjdk8&alpine底包
FROM openjdk:8-alpineRUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositoriesRUN apk update \&& apk add ttf-dejavu libuuid tzdata \&& cp -r -f /usr/share/zonein
·
FROM openjdk:8-alpine
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk update \
&& apk add ttf-dejavu libuuid tzdata \
&& cp -r -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& apk del tzdata && rm -rf /var/cache/apk/*
更多推荐
已为社区贡献2条内容
所有评论(0)