Browse Source

电信云增加javahome

liweiquan 1 year ago
parent
commit
92819b6f8e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Dockerfile.idc

+ 3 - 0
Dockerfile.idc

@@ -25,6 +25,9 @@ RUN sed -i 's#archive.ubuntu.com#mirrors.aliyun.com#g' /etc/apt/sources.list  \
     && sed -i 's#security.ubuntu.com#mirrors.aliyun.com#g' /etc/apt/sources.list
 
 COPY --from=builder-cdh /usr/hadoop-3.0.0/  /usr/hadoop-3.0.0/
+# JAVAHOME
+COPY --from=builder-cdh /usr/jdk1.8.0_202  /usr/jdk1.8.0_202
+ENV JAVA_HOME=/usr/jdk1.8.0_202
 
 # FROM  gettyimages/spark:2.4.0-hadoop-3.0  as builder
 # RUN sed -i "s@http://\(deb\|security\).debian.org@http://mirrors.163.com@g" /etc/apt/sources.list