From 09d417017b6955242db62f5ed1611cfe67ed8c5d Mon Sep 17 00:00:00 2001 From: Jason Montleon Date: Tue, 23 Jan 2024 13:42:58 -0500 Subject: [PATCH] :ghost: Improve running as non-root 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" ]