123456789101112131415161718192021222324252627 |
- FROM airdock/oracle-jdk:1.7
- MAINTAINER agus@senomas.com
- RUN apt-get update && apt-get install -y telnet vim git wget && apt-get clean && \
- rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
- 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 wget https://code.senomas.com/seno/docker-util-out/raw/master/linux-amd64/hlic && \
- chown jboss:jboss hlic && \
- chmod 755 hlic && \
- chown -R jboss:jboss /opt/jboss/jboss-as-7.2.0.Final
- USER jboss
- 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"]
|