openjdk with timezone (and other packages)
109
base image from official repo
including timezone(default Asia/Shanghai), bash, curl.
FROM zackhome/openjdk:8u171-jre-alpine as builder
RUN echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/main/" > /etc/apk/repositories
RUN apk update \
&& apk add --no-cache curl bash tzdata \
&& rm -rf /var/cache/apk/*r
#FROM zackhome/openjdk:8u171-jre-alpine
ENV TZ=Asia/Shanghai
#COPY --from=builder /usr/share/zoneinfo/$TZ /usr/share/zoneinfo/$TZ
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
we can uncomment lines that start with #, then just left timezone Asia/Shanghai
Content type
Image
Digest
Size
58.1 MB
Last updated
over 5 years ago
docker pull zackdevops/openjdk:jre8