编程语言
首页 > 编程语言> > docker打包java

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"]

 

标签:java,geyanan,jar,auth,etc,docker,打包,localtime
来源: https://www.cnblogs.com/fat-girl-spring/p/15756215.html