Created
April 19, 2026 06:35
-
-
Save karthiks/f04c101a07ec9b8e93d1d4a5cef2205d to your computer and use it in GitHub Desktop.
Reference Implementation - Minimal one to install JDTLS in Docker container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Use official Maven image with JDK 21 | |
| FROM maven:3.9.6-eclipse-temurin-21 | |
| # Install dependencies for JDTLS (Python is required for the wrapper script) | |
| RUN apt-get update && apt-get install -y \ | |
| python3 \ | |
| wget \ | |
| tar \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set JDTLS version and path | |
| ENV JDTLS_HOME=/opt/jdtls | |
| RUN mkdir -p $JDTLS_HOME | |
| # Download and extract the latest JDTLS snapshot | |
| RUN wget -qO- https://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz \ | |
| | tar -xvz -C $JDTLS_HOME | |
| # Create a symlink to the jdtls executable script | |
| RUN ln -s $JDTLS_HOME/bin/jdtls /usr/local/bin/jdtls | |
| ENTRYPOINT ["bash", "-i"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment