From 0f812b96678503ca0ad90230d679683580605cb9 Mon Sep 17 00:00:00 2001 From: Ravi Srinivasan Date: Mon, 3 Jun 2019 12:42:06 +0530 Subject: [PATCH] Replaced dnf by yum and disable RHSM --- hello-swarm/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hello-swarm/Dockerfile b/hello-swarm/Dockerfile index 9dc0b98..751299c 100644 --- a/hello-swarm/Dockerfile +++ b/hello-swarm/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.access.redhat.com/ubi8/ubi:8.0 +FROM FROM registry.redhat.io/ubi8/ubi MAINTAINER Red Hat Training @@ -7,8 +7,8 @@ ENV JAVA_OPTIONS -Xmx512m # Install the Java runtime, create a user for running the app, and set permissions -RUN dnf install -y --noplugins java-1.8.0-openjdk-headless && \ - dnf clean all --noplugins -y && \ +RUN yum install -y -disableplugin=subscription-manager java-1.8.0-openjdk-headless && \ + yum clean all -disableplugin=subscription-manager -y && \ useradd wildfly && \ mkdir -p /opt/app-root/bin