From 909c749f3c8eed83ad0e390cc2bb40498444a4d9 Mon Sep 17 00:00:00 2001 From: Ghost_chu Date: Fri, 10 Jan 2025 01:22:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A0=E6=AD=A3=20ENTRYPOINT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 491277b2f..3c742203f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,4 +22,4 @@ VOLUME /tmp COPY --from=build build/target/libraries /app/libraries COPY --from=build build/target/PeerBanHelper.jar /app/PeerBanHelper.jar ENV PATH="${JAVA_HOME}/bin:${PATH}" -ENTRYPOINT ${JAVA_HOME}/bin/java ${JAVA_OPTS} -jar PeerBanHelper.jar \ No newline at end of file +ENTRYPOINT ["sh", "-c", "${JAVA_HOME}/bin/java ${JAVA_OPTS} -jar PeerBanHelper.jar"] \ No newline at end of file