FROM ubuntu:16.04 # base ubuntu16.04
LABEL maintainer="vincent"
WORKDIR /usr
ADD jdk-8u144-linux-x64.tar.gz jdk # 添加java
ENV JAVA_HOME /usr/jdk/jdk1.8.0_144
ENV PATH $PATH:$JAVA_HOME/bin:
RUN apt-get update && apt-get install -y vim \ #安装vim
&& apt-get install -y net-tools \ #安装ifconfig
&& apt-get install -y wget \ # 安装wget
&& apt-get install -y iputils-ping \ #安装ping
&& rm -rf /var/lib/apt/lists/*