forked from dockerfile/java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (23 loc) · 832 Bytes
/
Dockerfile
File metadata and controls
27 lines (23 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#
# Oracle Java 7 Dockerfile
#
# https://github.com/GELOG/docker-ubuntu-java
# https://github.com/GELOG/docker-ubuntu-java/tree/oraclejdk7/
#
# Pull base image.
FROM ubuntu:14.04.1
# Install Java.
RUN \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common && \
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y oracle-java7-installer && \
ln -s /usr/lib/jvm/java-7-oracle /usr/lib/jvm/jdk && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk7-installer
# Define working directory. (Why?)
#WORKDIR /data
# Define commonly used JAVA_HOME variable
ENV JAVA_HOME /usr/lib/jvm/jdk