Add java path override in the event it is set in local user settings
This commit is contained in:
		@@ -5,11 +5,21 @@
 | 
			
		||||
 | 
			
		||||
FROM maven:3.6-jdk-8
 | 
			
		||||
 | 
			
		||||
# Install git, process tools
 | 
			
		||||
RUN apt-get update && apt-get -y install git procps
 | 
			
		||||
# Copy endpoint specific user settings overrides into container to specify Java path
 | 
			
		||||
COPY settings.vscode.json /root/.vscode-remote/data/Machine/settings.json
 | 
			
		||||
 | 
			
		||||
# Configure apt
 | 
			
		||||
ENV DEBIAN_FRONTEND=noninteractive
 | 
			
		||||
RUN apt-get update \
 | 
			
		||||
    && apt-get -y install --no-install-recommends apt-utils 2>&1
 | 
			
		||||
 | 
			
		||||
# Verify git, needed tools installed
 | 
			
		||||
RUN apt-get -y install git procps curl
 | 
			
		||||
 | 
			
		||||
# Clean up
 | 
			
		||||
RUN apt-get autoremove -y \
 | 
			
		||||
    && apt-get clean -y \
 | 
			
		||||
    && rm -rf /var/lib/apt/lists/*
 | 
			
		||||
ENV DEBIAN_FRONTEND=dialog
 | 
			
		||||
 | 
			
		||||
	
 | 
			
		||||
							
								
								
									
										3
									
								
								.devcontainer/settings.vscode.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.devcontainer/settings.vscode.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
{
 | 
			
		||||
    "java.home": "/docker-java-home"
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user