Fix OpenShift permissions issues.
@@ -8,5 +8,13 @@ ENV APIMAN_VERSION 1.3.0.Final
RUN cd $HOME/wildfly \
&& curl http://downloads.jboss.org/apiman/$APIMAN_VERSION/apiman-distro-wildfly10-$APIMAN_VERSION-overlay.zip | bsdtar -xvf-
+USER root
+
+RUN chown -R jboss:0 ${JBOSS_HOME} \
+ && chmod -R g+rw ${JBOSS_HOME}
+
+USER jboss
+
# Set the default command to run on boot
ENTRYPOINT ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0", "-c", "standalone-apiman.xml"]
+
