A Simple Pong Game built using HTML, CSS, and JavaScript, containerized with Docker.
- Classic Pong gameplay in the browser 🎮
- Lightweight, responsive, and easy to run locally or via Docker
- Simple and clean codebase for learning or customization
git clone https://github.com/atulkamble/pong-game.git
cd pong-gamesudo rm -f /usr/local/bin/docker-composeIf Docker is already installed:
sudo mkdir -p /usr/local/lib/docker/cli-plugins
sudo curl -SL https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-x86_64 -o /usr/local/lib/docker/cli-plugins/docker-compose
sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-composeCheck for the latest release here.
docker compose versionNotice — with V2 it’s docker compose (space) not docker-compose (hyphen) anymore.
docker build -t atuljkamble/pong-game .docker push atuljkamble/pong-gamedocker pull atuljkamble/pong-gamedocker run -d -p 80:80 atuljkamble/pong-gameOpen your browser and visit: http://localhost/
Platform-specific browser open commands:
# Linux
xdg-open http://localhost/
# macOS
open http://localhost/
# Windows (Powershell)
start http://localhost/# Build and start the containers
docker-compose up --build
# Build and start in detached mode
sudo docker-compose up --build -d
# Stop the containers
docker-compose stop
# Stop and remove containers, networks, and volumes
docker-compose downThis project is licensed under the MIT License.
Atul Kamble
Contributions are welcome! Feel free to open issues or submit pull requests to improve this project.
