Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tron-explore
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张建华@五瓣科技
tron-explore
Commits
dfd7522d
Commit
dfd7522d
authored
Nov 20, 2020
by
jianhua.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker文件
parent
538e9bf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
Dockerfile
docs/docker/Dockerfile
+13
-0
No files found.
docs/docker/Dockerfile
0 → 100644
View file @
dfd7522d
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment