The goal of this project is to build a fully automated, serverless CI/CD (Continuous Integration and Continuous Deployment) pipeline on Amazon Web Services (AWS) for a containerized 2048 web game. Whenever a developer pushes updated code to the main branch on GitHub, AWS automatically builds a new Docker container image, stores it securely, and updates the live website without any manual work or server management.
Packaging the Application with Docker
The 2048 game is a static web application made of HTML, CSS, and JavaScript files. To make sure it runs reliably in the cloud, it was packaged inside a lightweight Docker container using Nginx (a fast web server) running on Alpine Linux. This keeps the container small and allows it to start up in seconds.…