mirror of
https://github.com/byo-software/steam-openid-connect-provider.git
synced 2025-01-10 02:16:22 +00:00
19 lines
579 B
Text
19 lines
579 B
Text
|
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
|