Newer
Older
# Copyright 2018-2022 Istituto Nazionale di Fisica Nucleare
# SPDX-License-Identifier: EUPL-1.2
FROM centos:7
# Allow customization of nginx user ID and name
ARG USERNAME=nginx
ARG USER_UID=1000
ARG USER_GID=${USER_UID}
# install dependencies
COPY library-scripts/*.sh /tmp/library-scripts/
RUN yum update -y && \
sh /tmp/library-scripts/provide-deps.sh && \
sh /tmp/library-scripts/provide-user.sh ${USERNAME} ${USER_UID} ${USER_GID} && \
yum clean all && rm -rf /var/cache/yum
# install nginx with patch for HTTPG
COPY sources/nginx-httpg_no_delegation.patch /tmp/sources/
COPY sources/nginx.spec /tmp/sources/
RUN sh /tmp/library-scripts/provide-nginx-with-httpg.sh
# copy and install nginx_http_voms module
COPY ngx-http-voms-module /ngx-http-voms-module
COPY t /home/nginx/t
RUN sh /tmp/library-scripts/provide-ngx-http-voms-module.sh