[mod] jdk8
This commit is contained in:
		
							parent
							
								
									9836f33de3
								
							
						
					
					
						commit
						6846c0996f
					
				
					 1 changed files with 23 additions and 4 deletions
				
			
		| 
						 | 
					@ -15,11 +15,30 @@ LABEL author="Andy Bunce"
 | 
				
			||||||
LABEL company="Quodatum Ltd"
 | 
					LABEL company="Quodatum Ltd"
 | 
				
			||||||
LABEL maintainer="andy@quodatum.com"
 | 
					LABEL maintainer="andy@quodatum.com"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Install "software-properties-common" (for the "add-apt-repository")
 | 
				
			||||||
 | 
					RUN apt-get update && apt-get install -y \
 | 
				
			||||||
 | 
					    software-properties-common
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Add the "JAVA" ppa
 | 
				
			||||||
 | 
					RUN add-apt-repository -y \
 | 
				
			||||||
 | 
					    ppa:webupd8team/java
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Install OpenJDK-8
 | 
				
			||||||
 | 
					RUN apt-get update && \
 | 
				
			||||||
 | 
					    apt-get install -y openjdk-8-jdk && \
 | 
				
			||||||
 | 
					    apt-get install -y ant && \
 | 
				
			||||||
 | 
					    apt-get clean;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Fix certificate issues
 | 
				
			||||||
 | 
					RUN apt-get update && \
 | 
				
			||||||
 | 
					    apt-get install ca-certificates-java && \
 | 
				
			||||||
 | 
					    apt-get clean && \
 | 
				
			||||||
 | 
					    update-ca-certificates -f;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Setup JAVA_HOME -- useful for docker commandline
 | 
				
			||||||
 | 
					ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
 | 
				
			||||||
 | 
					RUN export JAVA_HOME
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ENV JAVA_HOME="/usr/lib/jvm/default-jvm/"
 | 
					 | 
				
			||||||
RUN apk add --no-cache bash openjdk11-jre-headless
 | 
					 | 
				
			||||||
# Has to be set explictly to find binaries 
 | 
					 | 
				
			||||||
ENV PATH=$PATH:${JAVA_HOME}/bin
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN adduser -h /srv -D -u 1000 basex 
 | 
					RUN adduser -h /srv -D -u 1000 basex 
 | 
				
			||||||
COPY --from=builder --chown=basex:basex /srv/ /srv
 | 
					COPY --from=builder --chown=basex:basex /srv/ /srv
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue