复旦核博士说,建议使用 CMD 替换 ENTRYPOINT,方便替换命令
This commit is contained in:
parent
84ca797b1a
commit
5d98ccdff1
@ -16,5 +16,4 @@ ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms512m -Xmx512m"
|
|||||||
EXPOSE 48080
|
EXPOSE 48080
|
||||||
|
|
||||||
## 启动后端项目
|
## 启动后端项目
|
||||||
ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar app.jar
|
CMD java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar app.jar
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user