Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #163 from hkeeler/keycloak-yum-cleanup
Browse files Browse the repository at this point in the history
Cleanup keycloak libaries
  • Loading branch information
wpears authored Sep 15, 2017
2 parents 8ab5fa0 + 8476611 commit d48ad50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion keycloak/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ 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
RUN yum-config-manager --enable cr && \
yum -y erase augeas augeas-libs && \
yum -y update && \
yum -y clean all

USER jboss

Expand All @@ -49,6 +52,7 @@ RUN echo 'Keycloak SPI build starting...' && \
mvn --quiet clean install && \
mkdir /opt/jboss/keycloak/providers && \
cp target/keycloak-authenticator-hmda-${KC_LIB_VER}.jar /opt/jboss/keycloak/providers && \
rm -rf /opt/jboss/.m2 && \
echo 'Keycloak SPIs build successful!'

EXPOSE 8080

0 comments on commit d48ad50

Please sign in to comment.