Skip to content
Snippets Groups Projects
Commit afb87b09 authored by lcappelli's avatar lcappelli
Browse files

Improvement in Dockerfile

the nginx.repo file is copied in the container only if it is necessary
parent b1cb3317
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,6 @@ RUN yum update -y && \
yum clean all && rm -rf /var/cache/yum
COPY artifacts/*.rpm /pkgs/
COPY nginx.repo /etc/yum.repos.d/nginx.repo
# install nginx httpg + voms and njs dynamic modules
RUN rpm -ivh /pkgs/nginx-httpg-1.22.1-1.el7.ngx.x86_64.rpm && \
......@@ -25,6 +24,7 @@ RUN rpm -ivh /pkgs/nginx-httpg-1.22.1-1.el7.ngx.x86_64.rpm && \
yum install -y nginx-module-njs
# install nginx + voms and njs dynamic modules
# COPY nginx.repo /etc/yum.repos.d/nginx.repo
# RUN yum -y install nginx nginx-module-njs && \
# rpm -ivh /pkgs/nginx-module-http-voms-1.22.1-1.el7.x86_64.rpm
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment