centos-openjdk镜像制作
FROM centos:7
# set environment
ENV LANG="zh_CN.UTF-8" \
LANGUAGE="zh_CN:zh" \
LC_ALL="zh_CN.UTF-8" \
JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk" \
JAVA="/usr/lib/jvm/java-1.8.0-openjdk/bin/java" \
TIME_ZONE="Asia/Shanghai"
RUN set -x \
&& yum update -y \
&& yum -y install kde-l10n-Chinese telnet \
&& yum reinstall -y glibc-common \
&& yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel wget iputils nc vim libcurl net-tools \
&& yum autoremove -y wget \
&& ln -snf /usr/share/zoneinfo/$TIME_ZONE /etc/localtime && echo $TIME_ZONE > /etc/timezone \
&& localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8 \
&& yum clean all \
&& rm -rf /tmp/* /var/cache/yum/*
网友评论