#!/bin/bash
yum install -y gcc gcc-c++ make pcre pcre-devel zlib zlib-devel
cd /usr/local/Nginx-1.16.0
./configure --prefix=/usr/local/Nginx && make && make install
dockerfile
FROM centos:7
ADD Nginx-1.16.0.tar.gz /usr/local
copY Nginx_install.sh /usr/local
RUN sh /usr/local/Nginx_install.sh
EXPOSE 80