...
Bloco de código |
---|
FROM ubuntu:18.04
MAINTAINER jair.dresch@mobilesaude.com.br
# Install Java and Server
RUN apt-get update &&\
apt-get install -y vim &&\
apt-get install -y openjdk-8-jdk &&\
apt-get install -y iproute2 &&\
apt-get install -y wget &&\
apt-get install -y net-tools &&\
apt-get install -y less &&\
groupadd -r wildfly &&\
useradd -r -g wildfly -d /opt/wildfly -s /sbin/nologin wildfly &&\
cd /tmp/ &&\
wget https://download.jboss.org/wildfly/16.0.0.Final/wildfly-16.0.0.Final.tar.gz &&\
tar xvf wildfly-16.0.0.Final.tar.gz &&\
mv wildfly-16.0.0.Final/ /opt/wildfly/ &&\
chown -RH wildfly: /opt/wildfly/ &&\
mkdir -p /etc/wildfly/ &&\
cp /opt/wildfly/docs/contrib/scripts/systemd/wildfly.conf /etc/wildfly/ &&\
cp /opt/wildfly/docs/contrib/scripts/systemd/launch.sh /opt/wildfly/bin/ &&\
sh -c 'chmod +x /opt/wildfly/bin/*.sh' &&\
cp /opt/wildfly/docs/contrib/scripts/systemd/wildfly.service /etc/systemd/system/ &&\
apt-get clean &&\
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* &&\
cd ..
EXPOSE 8080
CMD ["/opt/wildfly/bin/standalone.sh", "-b", "0.0.0.0"] |
...
Bloco de código |
---|
FROM ubuntu:18.04
MAINTAINER jair.dresch@mobilesaude.com.br
# Install Java and Server
RUN apt-get update &&\
apt-get install -y vim &&\
apt-get install -y openjdk-8-jdk &&\
apt-get install -y iproute2 &&\
apt-get install -y wget &&\
apt-get install -y net-tools &&\
apt-get install -y less &&\
groupadd -r wildfly &&\
useradd -r -g wildfly -d /opt/wildfly -s /sbin/nologin wildfly &&\
cd /tmp/ &&\
wget https://download.jboss.org/wildfly/16.0.0.Final/wildfly-16.0.0.Final.tar.gz &&\
tar xvf wildfly-16.0.0.Final.tar.gz &&\
mv wildfly-16.0.0.Final/ /opt/wildfly/ &&\
chown -RH wildfly: /opt/wildfly/ &&\
mkdir -p /etc/wildfly/ &&\
cp /opt/wildfly/docs/contrib/scripts/systemd/wildfly.conf /etc/wildfly/ &&\
cp /opt/wildfly/docs/contrib/scripts/systemd/launch.sh /opt/wildfly/bin/ &&\
sh -c 'chmod +x /opt/wildfly/bin/*.sh' &&\
cp /opt/wildfly/docs/contrib/scripts/systemd/wildfly.service /etc/systemd/system/ &&\
apt-get clean &&\
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* &&\
cd ..
EXPOSE 10080
CMD ["/opt/wildfly/bin/standalone.sh", "-b", "0.0.0.0"] |
...