Newer
Older
# 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} && \
# install nginx httpg + voms and njs dynamic modules (latest version)
RUN rpm -ivh /pkgs/nginx-httpg-1.24.0-1.el7.ngx.x86_64.rpm && \
rpm -ivh /pkgs/nginx-module-http-voms-1.24.0-1.el7.x86_64.rpm && \
# install nginx + voms and njs dynamic modules
# rpm -ivh /pkgs/nginx-module-http-voms-1.24.0-1.el7.x86_64.rpm
EXPOSE 80
STOPSIGNAL SIGQUIT