-
Notifications
You must be signed in to change notification settings - Fork 65
/
Dockerfile
27 lines (22 loc) · 998 Bytes
/
Dockerfile
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
FROM andreptb/oracle-java:7
# JBoss version
ENV JBOSS_VERSION 4.2.3.GA
ENV JBOSS_HOME /opt/jboss/jboss5
ENV ANT_VERSION 1.9.6
# default port
EXPOSE 8080
# Installs jboss
RUN cd $HOME && \
apt-get update && apt-get install -y unzip && \
wget -q http://sourceforge.net/projects/jboss/files/JBoss/JBoss-$JBOSS_VERSION/jboss-$JBOSS_VERSION.zip/download -O jboss-$JBOSS_VERSION.zip && \
unzip -qo jboss-$JBOSS_VERSION.zip && \
mkdir -p /opt/jboss && \
mv $HOME/jboss-$JBOSS_VERSION $JBOSS_HOME && \
rm -rf jboss-$JBOSS_VERSION.zip $JBOSS_HOME/server/all $JBOSS_HOME/server/minimal $JBOSS_HOME/docs && \
wget -q http://www.us.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz && \
tar -xzf apache-ant-${ANT_VERSION}-bin.tar.gz && \
mv apache-ant-${ANT_VERSION} /usr/share/ant && \
rm apache-ant-${ANT_VERSION}-bin.tar.gz
ENV ANT_HOME /usr/share/ant
ENV PATH ${PATH}:/usr/share/ant/bin
CMD ["/opt/jboss/jboss5/bin/run.sh", "-b", "0.0.0.0"]