mirror of
https://gitee.com/kennylee/docker.git
synced 2024-12-05 05:18:06 +08:00
20 lines
478 B
Docker
Executable File
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"]
|