docker/java/openjdk/6/jre/Dockerfile

20 lines
478 B
Docker
Raw Normal View History

2017-01-17 20:25:54 +08:00
FROM registry.cn-hangzhou.aliyuncs.com/kennylee/ubuntu:trusty
2015-10-28 11:16:39 +08:00
MAINTAINER kennylee26 <kennylee26@gmail.com>
2015-10-28 11:16:39 +08:00
# 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"
2015-10-28 11:16:39 +08:00
# Define default command.
CMD ["bash"]