File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414# limitations under the License.
1515#
1616
17- FROM openjdk:17-alpine
17+ FROM registry.access.redhat.com/ubi9/ openjdk-21:latest
1818
1919LABEL maintainer="Harald Pehl <hpehl@redhat.com>"
2020
@@ -23,11 +23,13 @@ ARG WILDFLY_VERSION
2323COPY wildfly-${WILDFLY_VERSION}.tar.gz /
2424
2525USER root
26- RUN mkdir -p ${JBOSS_HOME} \
27- && tar xf /wildfly-${WILDFLY_VERSION}.tar.gz --directory=/ \
26+ RUN microdnf install -y gzip \
27+ && microdnf clean all \
28+ && mkdir -p ${JBOSS_HOME} \
29+ && tar xf /wildfly-${WILDFLY_VERSION}.tar.gz --no-same-owner --directory=/ \
2830 && mv /wildfly-${WILDFLY_VERSION}/* ${JBOSS_HOME} \
2931 && rm /wildfly-${WILDFLY_VERSION}.tar.gz \
30- && adduser --disabled-password --gecos "" jboss \
32+ && useradd -m jboss \
3133 && chown -R jboss:0 ${JBOSS_HOME} \
3234 && chmod -R g+rw ${JBOSS_HOME}
3335
Original file line number Diff line number Diff line change 1414# limitations under the License.
1515#
1616
17- FROM openjdk:17-alpine
17+ FROM registry.access.redhat.com/ubi9/ openjdk-21:latest
1818
1919LABEL maintainer="Harald Pehl <hpehl@redhat.com>"
2020
@@ -23,11 +23,13 @@ ARG WILDFLY_VERSION
2323COPY wildfly-${WILDFLY_VERSION}.tar.gz /
2424
2525USER root
26- RUN mkdir -p ${JBOSS_HOME} \
27- && tar xf /wildfly-${WILDFLY_VERSION}.tar.gz --directory=/ \
26+ RUN microdnf install -y gzip \
27+ && microdnf clean all \
28+ && mkdir -p ${JBOSS_HOME} \
29+ && tar xf /wildfly-${WILDFLY_VERSION}.tar.gz --no-same-owner --directory=/ \
2830 && mv /wildfly-${WILDFLY_VERSION}/* ${JBOSS_HOME} \
2931 && rm /wildfly-${WILDFLY_VERSION}.tar.gz \
30- && adduser --disabled-password --gecos "" jboss \
32+ && useradd -m jboss \
3133 && chown -R jboss:0 ${JBOSS_HOME} \
3234 && chmod -R g+rw ${JBOSS_HOME}
3335
You can’t perform that action at this time.
0 commit comments