-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (18 loc) · 839 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM rahulcv/bionicbase
LABEL maintainer="[email protected]"
# required to use add-apt-repository
RUN buildDeps='software-properties-common'; \
set -x && \
apt-get update && apt-get install -y $buildDeps --no-install-recommends && \
# use WebUpd8 PPA
add-apt-repository ppa:webupd8team/java -y && \
apt-get update -y && \
# automatically accept the Oracle license
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \
apt-get install -y oracle-java8-installer && \
apt-get install -y oracle-java8-set-default && \
# clean up
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
apt-get purge -y --auto-remove $buildDeps && \
apt-get autoremove -y && apt-get clean
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle