Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wh-vector
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
魏博昱
wh-vector
Commits
525c145b
Commit
525c145b
authored
Sep 15, 2020
by
魏博昱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
..
parent
50d71289
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
Dockerfile
Dockerfile
+20
-0
redis.conf
redis.conf
+0
-0
No files found.
Dockerfile
0 → 100644
View file @
525c145b
# 基于openjdk 镜像
FROM
java:8
# 将本地文件夹挂在到当前容器
VOLUME
/tmp
# 复制文件到容器
ADD
vector-0.0.1-SNAPSHOT.jar app.jar
COPY
application.yml
#时区设置(不一定需要)
#RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone
# 声明需要暴露的端口
EXPOSE
8090
# 配置容器启动后执行的命令
RUN
bash
-c
"touch /app.jar"
ENTRYPOINT
["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
\ No newline at end of file
redis.conf
0 → 100644
View file @
525c145b
This diff is collapsed.
Click to expand it.
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