From a8f89d5a57079563911da2baff4dc0a43eaa6d7b Mon Sep 17 00:00:00 2001 From: Jason Montleon Date: Wed, 24 Jan 2024 10:50:59 -0500 Subject: [PATCH] :ghost: Improve running as non-root (#87) Signed-off-by: Jason Montleon --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 3b94353..fd52ad8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,4 +43,5 @@ COPY --from=jdtls-download /jdtls /jdtls/ COPY --from=addon-build /root/.m2/repository/io/konveyor/tackle/java-analyzer-bundle.core/1.0.0-SNAPSHOT/java-analyzer-bundle.core-1.0.0-SNAPSHOT.jar /jdtls/java-analyzer-bundle/java-analyzer-bundle.core/target/ COPY --from=fernflower /output/fernflower.jar /bin/fernflower.jar COPY --from=maven-index /maven.default.index /usr/local/etc/maven.default.index +RUN ln -sf /root/.m2 /.m2 && chgrp -R 0 /root && chmod -R g=u /root CMD [ "/jdtls/bin/jdtls" ]