Skip to content

Commit

Permalink
Upgraded OpenJDK to version 11.0.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesage committed Oct 27, 2018
1 parent 9a61fa0 commit 2a1f44f
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,46 @@
# Pull base image.
FROM jlesage/baseimage-gui:alpine-3.8-v3.5.1

# Define software versions.
ARG OPENJDK_VERSION=11.0.1

# Define software download URLs.
ARG OPENJDK_URL=https://download.java.net/java/GA/jdk11/13/GPL/openjdk-${OPENJDK_VERSION}_linux-x64_bin.tar.gz

# Define working directory.
WORKDIR /tmp

# Install MakeMKV.
ADD makemkv-builder/makemkv.tar.gz /

# Install Java.
RUN \
add-pkg --virtual build-dependencies \
curl \
&& \
mkdir /usr/lib/jvm/ && \
# Download and extract.
curl -# -L "${OPENJDK_URL}" | tar xz -C /usr/lib/jvm/ && \
# Removed uneeded stuff.
rm -r \
/usr/lib/jvm/jdk-${OPENJDK_VERSION}/include \
/usr/lib/jvm/jdk-${OPENJDK_VERSION}/jmods \
/usr/lib/jvm/jdk-${OPENJDK_VERSION}/legal \
/usr/lib/jvm/jdk-${OPENJDK_VERSION}/release \
/usr/lib/jvm/jdk-${OPENJDK_VERSION}/lib/modules \
/usr/lib/jvm/jdk-${OPENJDK_VERSION}/lib/src.zip \
&& \
# Cleanup.
del-pkg build-dependencies && \
rm -rf /tmp/* /tmp/.[!.]*

# Install dependencies.
RUN \
add-pkg \
wget \
sed \
findutils \
util-linux \
openjdk8-jre-base \
lsscsi

# Generate and install favicons.
Expand Down

0 comments on commit 2a1f44f

Please sign in to comment.