复旦核博士说,建议使用 CMD 替换 ENTRYPOINT,方便替换命令

This commit is contained in:
YunaiV 2022-04-14 20:52:51 +08:00
parent 84ca797b1a
commit 5d98ccdff1

View File

@ -16,5 +16,4 @@ ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms512m -Xmx512m"
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