Commit dfd7522d authored by jianhua.zhang's avatar jianhua.zhang

docker文件

parent 538e9bf7
# Docker image for springboot file run
# VERSION 0.0.1
# Author: sky
# 基础镜像使用java
FROM java:8
# VOLUME 指定了临时文件目录为/tmp。
# 其效果是在主机 /var/lib/docker 目录下创建了一个临时文件,并链接到容器的/tmp
VOLUME /tmp
# 将jar包添加到容器中并更名为app.jar
ADD tron-explore-0.0.1-SNAPSHOT.jar tron-explore.jar
# 运行jar包
RUN bash -c 'touch /tron-explore.jar'
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/tron-explore.jar"]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment