Today we'll build an Nginx Docker image and launch the container containing the Start Bootstrap landing page template offered for free at the website below.
https://startbootstrap.com/theme/land...
I've created a Github repo including most of my Docker Nginx project folders.
https://github.com/stevecosner/docker...
This project is located in the boot-landing folder above.
After that we'll build the same image and container but will use docker compose file which can be used instead of the normal command line interface options.
Dockerfile:
FROM nginx
MAINTAINER steve
RUN mv /usr/share/nginx/html/index.html /usr/share/nginx/html/backupindex.html
RUN mv /usr/share/nginx/html/50x.html /usr/share/nginx/html/backup50x.html
RUN apt update
RUN apt install git -y
RUN git clone https://github.com/BlackrockDigital/s...
RUN cp -r startbootstrap-landing-page/. /usr/share/nginx/html
docker-compose file:
---
version: "2"
services:
web1:
build: .
ports:
"80:80"