docker/java/openjdk/6/jre/Dockerfile
2017-01-27 14:48:59 +08:00

20 lines
478 B
Docker
Executable File

FROM registry.cn-hangzhou.aliyuncs.com/kennylee/ubuntu:trusty
MAINTAINER kennylee26 <kennylee26@gmail.com>
# Install Java.
RUN \
apt-get update && \
apt-get install -y openjdk-6-jre && \
rm -rf /var/lib/apt/lists/*
# Define working directory.
WORKDIR /data
# Define commonly used JAVA_HOME variable
ENV JAVA_HOME /usr/lib/jvm/java-6-openjdk-amd64
ENV JAVA_OPTS "-server -Xms128m -Xmx1024m -XX:PermSize=64M -XX:MaxPermSize=192M"
# Define default command.
CMD ["bash"]