Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
mall
Commits
969e960b
Commit
969e960b
authored
Oct 18, 2020
by
macro
Browse files
Update Dockerfile
parent
77317d5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
document/sh/Dockerfile
View file @
969e960b
# 该镜像需要依赖的基础镜像
FROM
java:8
# 将当前目录下的jar包复制到docker容器的/目录下
ADD
mall-admin-1.0
.1
-SNAPSHOT.jar /mall-admin-1.0
.1
-SNAPSHOT.jar
ADD
mall-admin-1.0-SNAPSHOT.jar /mall-admin-1.0-SNAPSHOT.jar
# 声明服务运行在8088端口
EXPOSE
8080
# 指定docker容器启动时运行jar包
ENTRYPOINT
["java", "-jar","/mall-admin-1.0
.1
-SNAPSHOT.jar"]
ENTRYPOINT
["java", "-jar","/mall-admin-1.0-SNAPSHOT.jar"]
# 指定维护者的名字
MAINTAINER
macro
\ No newline at end of file
Write
Preview
Supports
Markdown
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