Springboot使用docker容器部署
2020-12-13 04:47
阅读:268
FROM openjdk:8
MAINTAINER Lee
WORKDIR /home
VOLUME /home/logs
ENV java_opts ‘-XX:+PrintGCDetails -XX:+PrintGCTimeStamps‘
#ADD package/pinpoint-agent /pinpoint-agent
ADD package/lee-spring-demo/target/lee-spring-demo.jar /home/
RUN chmod -x lee-spring-demo.jar \
&& /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo ‘Asia/Shanghai‘ >/etc/timezone
CMD java -jar $java_opts /home/lee-spring-demo.jar
EXPOSE 8080
EXPOSE 4100
评论
亲,登录后才可以留言!