From 718e1afa0b5a869f400b228604cc08d41773a0c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=8C=E6=96=87=E9=BE=99?= Date: Fri, 1 Jul 2022 09:22:52 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'jre/8/Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jre/8/Dockerfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/jre/8/Dockerfile b/jre/8/Dockerfile index 55eea20..b124d1c 100644 --- a/jre/8/Dockerfile +++ b/jre/8/Dockerfile @@ -1,8 +1,12 @@ -FROM repository.anxinyun.cn/devops/alpine:3-tz-hw +FROM openjdk:8-jre-alpine -ENV JDK_VERSION_MAIN 8 +RUN set -eu; \ + sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories; \ + apk add --no-cache tzdata \ + && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ + && echo "Asia/Shanghai" > /etc/timezone \ + && apk del tzdata; \ + addgroup -g 1000 fs \ + && adduser -u 1000 -G fs -s /bin/sh -D fs -ENV JDK_VERSION 8.322.06-r0 - -RUN apk add --no-cache openjdk${JDK_VERSION_MAIN}-jre==${JDK_VERSION}; \ - java -version +USER fs