Dockerfile 744 B

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