FROM i2incommon/shibboleth_sp:3.5.0_03132025_rocky9_multiarch

LABEL version="${VERSION}"

RUN dnf update -y && \
  dnf clean all

COPY container_files/httpd/httpd.conf /etc/httpd/conf/httpd.conf
COPY container_files/httpd/proxy.conf /etc/httpd/conf.d/proxy.conf
COPY container_files/httpd/shib.conf /etc/httpd/conf.d/shib.conf
COPY container_files/httpd/ssl.conf /etc/httpd/conf.d/ssl.conf
COPY container_files/httpd/vhost.conf /etc/httpd/conf.d/vhost.conf
COPY container_files/httpd/00-mpm.conf /etc/httpd/conf.modules.d/00-mpm.conf

COPY container_files/shibboleth/attribute-map.xml /etc/shibboleth/attribute-map.xml
COPY container_files/shibboleth/shibboleth2.xml.tpl /etc/shibboleth/shibboleth2.xml.tpl

COPY container_files/system/supervisord.conf /etc/supervisor/supervisord.conf

COPY --chown=root:root container_files/proxy-entrypoint.sh /usr/local/bin/proxy-entrypoint.sh
RUN chmod 755 /usr/local/bin/proxy-entrypoint.sh
ENTRYPOINT [ "/usr/local/bin/proxy-entrypoint.sh" ]

# From base image
CMD [ "/usr/local/bin/startup.sh" ]