From c71de47d2fd8f952513c5b8a035dbf139bb5b2f8 Mon Sep 17 00:00:00 2001 From: Dylan Murray Date: Tue, 17 Dec 2024 20:30:17 -0500 Subject: [PATCH] :bug: Fix docker build for gopls (#119) Signed-off-by: Dylan Murray (cherry picked from commit cd20e41de253066f49008f4d07d55eaf963303cf) --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1a3c9af..2eb19b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,8 +24,7 @@ COPY ./ /app/ RUN export JAVA_HOME=/usr/lib/jvm/java-17-openjdk RUN JAVA_HOME=/usr/lib/jvm/java-17-openjdk mvn clean install -DskipTests=true -FROM registry.access.redhat.com/ubi9/ubi-minimal as gopls-build -RUN microdnf install -y go-toolset && microdnf clean all && rm -rf /var/cache/dnf +FROM golang:1.23 as gopls-build RUN go install golang.org/x/tools/gopls@latest FROM registry.access.redhat.com/ubi9/ubi-minimal @@ -44,7 +43,7 @@ ENV M2_HOME /usr/local/apache-maven-3.9.5 RUN mkdir /root/.gradle COPY ./gradle/build.gradle /root/.gradle/task.gradle -COPY --from=gopls-build /root/go/bin/gopls /root/go/bin/gopls +COPY --from=gopls-build /go/bin/gopls /root/go/bin/gopls 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