We will build 2 docker nginx images.
1. We'll build the image that replaces the heading with a different heading using the stock nginx index file.
2. We'll replace the entire index file in image 2.
The Github repo is listed below:
https://github.com/stevecosner/docker...
Docker file 1:
FROM nginx:latest
MAINTAINER steve
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install mariadb-server -y
RUN replace RUN replace "Welcome to nginx!" "Nginx on Docker" -- /usr/share/nginx/html/index.html "Welcome to Nginx on Docker" -- /usr/share/nginx/html/index.html
Docker file 2:
FROM nginx
MAINTAINER steve
RUN apt-get update
RUN apt-get upgrade -y
COPY index.html /usr/share/nginx/html