FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
multi_function_github/Dockerfile at main · hourui9031/multi_function_github · GitHub
hourui9031
/
multi_function_github
Public
forked from
longbig/multi_function_github
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
multi_function_github
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (15 loc) · 602 Bytes
Breadcrumbs
multi_function_github
/
Dockerfile
Copy path
File metadata and controls
15 lines (15 loc) · 602 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#
使用jdk8作为基础镜像
FROM
openjdk:8
#
指定作者
MAINTAINER
longbig
#
暴漏容器的8080端口
EXPOSE
8080
#
将复制指定的docker-demo-0.0.1-SNAPSHOT.jar为容器中的job.jar,相当于拷贝到容器中取了个别名
ADD
./target/application.jar /application.jar
#
创建一个新的容器并在新的容器中运行命令
#
RUN bash -c 'touch /application.jar'
#
设置时区
#
ENV TZ=PRC
#
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
#
相当于在容器中用cmd命令执行jar包 指定外部配置文件
ENTRYPOINT
[
"java"
,
"-jar"
,
"/application.jar"
]
Back
|
FazBrowse Home
|
New Git URL