12345678910111213141516171819202122232425 |
- #FROM jboss/base-jdk:7
- FROM airdock/oracle-jdk:1.7
- RUN apt-get update && apt-get install -y telnet vim
- RUN groupadd -r jboss -g 1001 && useradd -u 1001 -r -g jboss -m -d /opt/jboss -s /sbin/nologin -c "JBoss user" jboss && \
- chmod 755 /opt/jboss
- # Set the working directory to jboss' user home directory
- WORKDIR /opt/jboss
- # Specify the user which should be used to execute all commands below
- USER jboss
- USER root
- ADD jboss-as-7.2.0.Final /opt/jboss/jboss-as-7.2.0.Final
- RUN chown -R jboss:jboss /opt/jboss/jboss-as-7.2.0.Final
- USER jboss
- ADD gotmpl /usr/bin/gotmpl
- ENV JBOSS_HOME=/opt/jboss/jboss-as-7.2.0.Final
- EXPOSE 8080 9997
- CMD ["/opt/jboss/jboss-as-7.2.0.Final/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0"]
|