Skip to content

Commit 2b495de

Browse files
author
guoyuanlu
committed
update
1 parent d957eb4 commit 2b495de

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile-Tunnel

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ ENV NACOS_CONFIG_GROUP "arthas"
2929
ENV NACOS_CONFIG_USERNAME "nacos"
3030
ENV NACOS_CONFIG_PASSWORD "nacos"
3131

32+
WORKDIR $HOME
33+
3234
COPY --from=builder /app/tunnel-server/target/arthas-tunnel-server-3.6.7-fatjar.jar ./app.jar
3335
COPY --from=builder /app/tunnel-server/target/classes/application.properties ./
3436
COPY --from=builder /app/entrypoint.sh ./

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ if [[ "${NACOS_CONFIG_ENABLED}" == "true" ]]; then
8080
JAVA_OPTS="${JAVA_OPTS} -Dspring.cloud.nacos.config.password=${NACOS_CONFIG_PASSWORD}"
8181
fi
8282

83-
exec java $JAVA_OPTS -noverify -Djava.security.egd=file:/dev/./urandom -jar --spring.config.additional-location=/app/application.properties /app/app.jar
83+
exec java $JAVA_OPTS -noverify -Djava.security.egd=file:/dev/./urandom -jar --spring.config.additional-location=${HOME}/application.properties ${HOME}/app.jar

0 commit comments

Comments
 (0)