171101-Dockerfile详解

Dockerfile详解

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM        java:jdk

ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64
ENV GLASSFISH_HOME /usr/local/glassfish4
ENV PATH $PATH:$JAVA_HOME/bin:$GLASSFISH_HOME/bin

RUN apt-get update && \
apt-get install -y curl unzip zip inotify-tools && \
rm -rf /var/lib/apt/lists/*

RUN curl -L -o /tmp/glassfish-4.0.zip http://download.java.net/glassfish/4.0/release/glassfish-4.0.zip && \
unzip /tmp/glassfish-4.0.zip -d /usr/local && \
rm -f /tmp/glassfish-4.0.zip

EXPOSE 8080 4848 8181

WORKDIR /usr/local/glassfish4

# verbose causes the process to remain in the foreground so that docker can track it
CMD asadmin start-domain --verbose
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×