How pythonzm/docker-nginx works
Project type and purpose
• This is a Docker‐based Nginx image project whose sole purpose is to package and run Nginx with custom static content or custom configuration.
• Key indicators: presence of Dockerfile, nginx.conf, instructions in README on mounting static HTML, port mapping, and custom config.
File structure
• Top‐level files only—no “frontend” or “backend” directories.
• Dockerfile & Dockerfile.bak: build instructions for the custom image.
• nginx.conf & nginx.vh.default.conf: Nginx main and virtual‐host configuration.
• README.md offers usage patterns: bind mounts, COPY in Dockerfile, port mapping.
README for additional insights
• Three usage patterns:
a. Bind-mount host’s static content into /usr/share/nginx/html
b. COPY static content into the image at build time
c. Bind-mount or COPY a custom nginx.conf
• Port mapping (host 8080 → container 80)
• Must run nginx in the foreground for Docker.