Skip to content
Snippets Groups Projects
Dockerfile 749 B
Newer Older
  • Learn to ignore specific revisions
  • # 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 && \
    
    lcappelli's avatar
    lcappelli committed
        sh /tmp/library-scripts/provide-deps.sh && \
        sh /tmp/library-scripts/provide-user.sh ${USERNAME} ${USER_UID} ${USER_GID} && \
    
        mkdir /pkgs && \
    
    lcappelli's avatar
    lcappelli committed
        yum clean all && rm -rf /var/cache/yum
    
    # install nginx with patch for HTTPG and voms module
    
    COPY ngx-artifacts/*.rpm /pkgs/
    COPY voms-artifacts/*.rpm /pkgs/
    
    COPY t /home/nginx/t
    
    COPY test-ngx-voms.sh /home/nginx/
    
    lcappelli's avatar
    lcappelli committed
    RUN sudo chown -R nginx:nginx /home/nginx/