diff --git a/hello-swarm/Dockerfile b/hello-swarm/Dockerfile index 30acaf7878..a692ec72bc 100644 --- a/hello-swarm/Dockerfile +++ b/hello-swarm/Dockerfile @@ -7,8 +7,8 @@ ENV JAVA_OPTIONS -Xmx512m # Install the Java runtime, create a user for running the app, and set permissions -RUN yum install -y -disableplugin=subscription-manager java-1.8.0-openjdk-headless && \ - yum clean all -disableplugin=subscription-manager -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