-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile-modular
24 lines (18 loc) · 1004 Bytes
/
Dockerfile-modular
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM registry.access.redhat.com/ubi8/openjdk-8:1.14-5.1666624658
USER root
WORKDIR /home/jboss
RUN microdnf update
RUN microdnf install unzip
COPY ./files/jboss-eap-7.4.0.zip ./jboss-eap-7.4.0.zip
USER jboss
RUN unzip jboss-eap-7.4.0.zip
RUN chgrp -R 0 /home/jboss/jboss-eap-7.4 && chmod -R g=u /home/jboss/jboss-eap-7.4
COPY ./modular/index.html /home/jboss/jboss-eap-7.4/welcome-content/index.html
COPY ./files/standalone.xml /home/jboss/jboss-eap-7.4/standalone/configuration/standalone.xml
RUN mkdir -p /home/jboss/jboss-eap-7.4/modules/org
COPY ./files/pgdatasource/module.xml /home/jboss/jboss-eap-7.4/modules/org/postgresql/main/module.xml
COPY ./files/pgdatasource/postgresql-42.5.0.jar /home/jboss/jboss-eap-7.4/modules/org/postgresql/main/postgresql-42.5.0.jar
WORKDIR /home/jboss/jboss-eap-7.4
COPY ./modular/modular-ear/target/modular-ear.ear /home/jboss/jboss-eap-7.4/standalone/deployments/modular-ear.ear
EXPOSE 8080
CMD ["/home/jboss/jboss-eap-7.4/bin/standalone.sh","-b","0.0.0.0"]