-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile-backend
29 lines (20 loc) · 1.2 KB
/
Dockerfile-backend
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
WORKDIR /home/jboss/jboss-eap-7.4
COPY ./refactored/refactored-ear-backend/target/backend.ear /home/jboss/jboss-eap-7.4/standalone/deployments/backend.ear
COPY ./refactored/refactored-ejb-healthcheck/target/backendhealthcheck-jar-with-dependencies.jar /home/jboss/backendhealthcheck-jar-with-dependencies.jar
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
COPY ./files/backendhealth.sh /home/jboss/jboss-eap-7.4/backendhealth.sh
RUN /home/jboss/jboss-eap-7.4/bin/add-user.sh -a -u 'jboss' -p 'jboss'
EXPOSE 8080
CMD ["/home/jboss/jboss-eap-7.4/bin/standalone.sh","-b","0.0.0.0"]