steam-openid-connect-provider/develop/keycloak/Dockerfile
Mark Ettema 59bd22567e Adding Dockerfiles for supporting services.
Updating keycloak container to be able to add SSL cert
2021-05-15 18:27:57 +07:00

19 lines
No EOL
579 B
Docker

FROM jboss/keycloak
USER root
# Install sudo and utils to configure jboss user
RUN microdnf update -y && \
microdnf install -y sudo shadow-utils passwd && \
microdnf clean all
# 'Fix' jboss user, add to sudoers
RUN usermod --password jboss jboss && \
usermod -aG wheel jboss && \
sed -i 's/# includedir/includedir/' /etc/sudoers && \
echo "jboss ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/jboss
ADD ./add-to-truststore.sh /opt/jboss/startup-scripts/add-to-truststore.sh
RUN chmod +x /opt/jboss/startup-scripts/add-to-truststore.sh
USER jboss