From 5cc7f045819f619829b3fe46bb7f5c33d8840fdd Mon Sep 17 00:00:00 2001 From: Hans Keeler Date: Thu, 24 Aug 2017 19:12:06 -0400 Subject: [PATCH] "yum update" to get the latest openjdk --- keycloak/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/keycloak/Dockerfile b/keycloak/Dockerfile index 9b0b6d5..414d6f2 100644 --- a/keycloak/Dockerfile +++ b/keycloak/Dockerfile @@ -30,10 +30,16 @@ COPY themes/hmda /opt/jboss/keycloak/themes/hmda # Copy custom authenticator provider source code COPY ${KC_SPI_SRC} ${KC_SPI_DEST}/${KC_SPI_SRC} +# Perform root user actions +USER root + # FIXME: Replace this with new COPY/ADD owner options when that feature become available # SEE: https://github.com/docker/docker/pull/27303 -USER root RUN chmod -R a+w ${KC_SPI_DEST} && chown -R jboss:jboss /opt/jboss + +# Get the latest yum packages, and cleanup packages from parent images +RUN yum -y update && yum -y clean all + USER jboss # Build the Keycloak authenticator SPI