简单明了,dockerfile文件附上
FROM ubuntu:latest
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
ENV TZ=Asia/Shanghai
RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \
&& echo $TZ > /etc/timezone \
&& sed -i s@/security.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y gcc g++ make \
&& apt-get install -y openjdk-8-jdk
#下载时区
RUN apt-get install locales -y \
&& locale-gen en_US.UTF-8