This project demonstrates how to containerize a simple web application with HTML, CSS, and a Dockerfile using the Nginx web server.
- Static web app with HTML, CSS, and a GIF.
- Dockerized using Nginx for efficient serving of static content.
- Lightweight image built with
nginx:alpine.
- Docker installed on your system.
- Basic understanding of Docker commands.
.
├── Dockerfile # Docker configuration file
├── index.html # HTML file for the web app
├── style.css # CSS file for styling
├── docker.gif # GIF used in the web app
FROM nginx:alpine
COPY index.html /usr/share/nginx/html/
COPY style.css /usr/share/nginx/html/
COPY docker.gif /usr/share/nginx/html/
git clone <repository-url>
cd <repository-folder>docker build -t simple-web-app .docker run -d -p 8080:80 simple-web-appOpen your browser and visit:
http://localhost:8080
To stop the container, find its ID using:
docker psThen stop it:
docker stop <container-id>docker rm <container-id>docker rmi simple-web-appThis app displays a simple page styled with CSS and an embedded GIF.
This project is licensed under the MIT License.