Skip to content

Commit

Permalink
🐛 Fix docker build for gopls (#119)
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan Murray <[email protected]>
(cherry picked from commit cd20e41)
  • Loading branch information
dymurray committed Dec 18, 2024
1 parent a18ce61 commit c71de47
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c71de47

Please sign in to comment.