Dockerfile 436 B

123456789101112
  1. FROM centos:7
  2. MAINTAINER tina 976056042@qq.com
  3. RUN echo "ip_resolve=4" >> /etc/yum.conf
  4. RUN yum install kde-l10n-Chinese -y
  5. RUN yum install glibc-common -y
  6. RUN localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
  7. RUN yum update -y && yum install -y java-1.8.0-openjdk
  8. RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
  9. RUN echo "Asia/Shanghai" > /etc/timezone
  10. ENV LC_ALL zh_CN.UTF-8
  11. ENV LANG zh_CN.UTF-8
  12. CMD ["/bin/sh","echo \"hello\""]