Dockerfile 951 B

123456789101112131415161718192021222324252627
  1. FROM airdock/oracle-jdk:1.7
  2. MAINTAINER agus@senomas.com
  3. RUN apt-get update && apt-get install -y telnet vim git wget && apt-get clean && \
  4. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
  5. groupadd -r jboss -g 1001 && useradd -u 1001 -r -g jboss -m -d /opt/jboss -s /sbin/nologin -c "JBoss user" jboss && \
  6. chmod 755 /opt/jboss
  7. # Set the working directory to jboss' user home directory
  8. WORKDIR /opt/jboss
  9. # Specify the user which should be used to execute all commands below
  10. USER jboss
  11. USER root
  12. ADD jboss-as-7.2.0.Final /opt/jboss/jboss-as-7.2.0.Final
  13. RUN wget https://code.senomas.com/seno/docker-util-out/raw/master/linux-amd64/hlic && \
  14. chown jboss:jboss hlic && \
  15. chmod 755 hlic && \
  16. chown -R jboss:jboss /opt/jboss/jboss-as-7.2.0.Final
  17. USER jboss
  18. ENV JBOSS_HOME=/opt/jboss/jboss-as-7.2.0.Final
  19. EXPOSE 8080 9997
  20. CMD ["/opt/jboss/jboss-as-7.2.0.Final/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0"]