commit | author | age
|
eb85bb
|
1 |
FROM FROM registry.access.redhat.com/ubi8/ubi:8.0 |
497620
|
2 |
|
RA |
3 |
MAINTAINER Red Hat Training <training@redhat.com> |
|
4 |
|
|
5 |
# command line options to pass to the JVM |
|
6 |
ENV JAVA_OPTIONS -Xmx512m |
|
7 |
|
|
8 |
|
|
9 |
# Install the Java runtime, create a user for running the app, and set permissions |
b13f8d
|
10 |
RUN yum install -y --disableplugin=subscription-manager java-1.8.0-openjdk-headless && \ |
RS |
11 |
yum clean all --disableplugin=subscription-manager -y && \ |
497620
|
12 |
useradd wildfly && \ |
RA |
13 |
mkdir -p /opt/app-root/bin |
|
14 |
|
|
15 |
# Copy the runnable fat JAR to the container. |
d97095
|
16 |
ADD https://github.com/RedHatTraining/DO288-apps/releases/download/1.0/hello-swarm.jar /opt/app-root/bin/ |
497620
|
17 |
|
RA |
18 |
COPY run-app.sh /opt/app-root/bin/ |
|
19 |
|
|
20 |
RUN chown -R wildfly:wildfly /opt/app-root && \ |
|
21 |
chmod -R 700 /opt/app-root |
|
22 |
|
|
23 |
EXPOSE 8080 |
|
24 |
|
|
25 |
USER wildfly |
|
26 |
|
|
27 |
# Run the fat JAR |
d97095
|
28 |
CMD /opt/app-root/bin/run-app.sh |