diff --git a/Dockerfile b/Dockerfile index 2eeabe5..df2abc7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,6 @@ FROM ibm-semeru-runtimes:open-21-jre WORKDIR /app COPY --from=build /app/target/Jetbrains-Help.jar Jetbrains-Help.jar ENV TZ=Asia/Shanghai -RUN ln -sf /usr/share/zoneinfo/{TZ} /etc/localtime && echo "{TZ}" > /etc/timezone +RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone EXPOSE 10768 ENTRYPOINT ["java", "-jar", "Jetbrains-Help.jar"] \ No newline at end of file diff --git a/src/main/resources/static/js/index.js b/src/main/resources/static/js/index.js index 56ded80..a664f2b 100644 --- a/src/main/resources/static/js/index.js +++ b/src/main/resources/static/js/index.js @@ -37,8 +37,8 @@ $(document).ready(function() { "--add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED\n" + "--add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED"; copyText(text) - .then((result) => { - alert(result); + .then(() => { + alert("VM options已复制成功"); }); };