Permalink
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (20 sloc) 963 Bytes
# Use latest jboss/base-jdk:7 image as the base
FROM jboss/base-jdk:7
# Set the WILDFLY_VERSION env variable
ENV WILDFLY_VERSION 8.2.1.Final
# Set the CapeDwarf env variable
ENV CAPEDWARF_VERSION 2.0.1.Final
RUN cd /opt/jboss
# Download & unzip latest CapeDwarf
RUN curl http://download.jboss.org/capedwarf/CapeDwarf_WildFly_$CAPEDWARF_VERSION.zip -o capedwarf_$CAPEDWARF_VERSION.zip
RUN unzip capedwarf_$CAPEDWARF_VERSION.zip -d /opt/jboss
RUN rm /opt/jboss/capedwarf_$CAPEDWARF_VERSION.zip
RUN mv CapeDwarf_WildFly_$CAPEDWARF_VERSION capedwarf
ADD standalone-capedwarf-docker.xml /opt/jboss/capedwarf/standalone/configuration/
# Set the JBOSS_HOME env variable
ENV JBOSS_HOME /opt/jboss/capedwarf
# Expose the ports we're interested in
EXPOSE 8080
# Set the default command to run on boot
# This will boot CapeDwarf in the standalone mode and bind to all interface
CMD ["/opt/jboss/capedwarf/bin/standalone.sh", "-c", "standalone-capedwarf-docker.xml"]