summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorLucas Charles <me@lucascharles.me>2019-03-21 19:59:51 +0000
committerLucas Charles <me@lucascharles.me>2019-03-21 19:59:51 +0000
commitfddc574141339a76e2426f628b4f204668d63e27 (patch)
treedb7231f6a2b150cbd99f113ec15897bc06d48292 /Dockerfile
parent663c87797b7e52d6db06603770d120958c65c0a3 (diff)
parent3a52cda095fae55e13a94e42f3c83263454bcadd (diff)
Merge branch 'java_11' into 'master'v1.2.5
Add Java 11 support See merge request gitlab-org/security-products/license-management!26
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index f21e9e8..c4dac87 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,6 +6,13 @@ MAINTAINER GitLab
ARG LICENSE_FINDER_VERSION
ENV LICENSE_FINDER_VERSION $LICENSE_FINDER_VERSION
+# Install JDK 11
+RUN cd /tmp && \
+ wget --quiet --no-cookies --no-check-certificate https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.2%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.2_9.tar.gz -O jdk-11.tgz && \
+ tar xf /tmp/jdk-11.tgz && \
+ mv jdk-11.0.2+9 /usr/lib/jvm/adoptopen_jdk11 && \
+ rm /tmp/jdk-11.tgz
+
RUN npm install npm-install-peers cheerio
# Don't let Rubygem fail with the numerous projects using PG or MySQL, install realpath