docker打包java
java1.8镜像 localtime文件为/etc/localtime 将本地此文件打包到docker镜像中
FROM openjdk:8-jdk-alpine MAINTAINER geyanan geyanan@xianlai-inc.com
ADD ./localtime /etc
RUN echo 'Asia/Shanghai' >/etc/timezone ADD ./auth.jar auth.jar EXPOSE 88 RUN mkdir -p /logs/tomcat/data-backstage ENTRYPOINT ["java","-jar","auth.jar"]