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

 

posted @ 2022-01-01 21:42  fat_girl_spring  阅读(200)  评论(0编辑  收藏  举报