Sign inSign up

sidhu1504/snake-game

By sidhu1504

โ€ขUpdated over 1 year ago

Image
0

290

sidhu1504/snake-game repository overview

โ ๐Ÿ Snake Game - Docker Image

โ ๐Ÿ“Œ Overview

sidhu1504/snake-game:latest is a containerized version of the classic Snake Game, built using Python and Flask. This image is pre-configured with all dependencies, making it easy to deploy and run anywhere using Docker.


โ ๐Ÿ‘… Pull the Image

To download the latest image from Docker Hub, use:

docker pull sidhu1504/snake-game:latest  

โ ๐Ÿš€ Run the Container

Start the container and expose it on port 5000:

docker run -d -p 5000:5000 sidhu1504/snake-game:latest  

โ ๐ŸŒ Access the Game

Once the container is running, open your browser and visit:

http://localhost:5000  

Or test with curl:

curl http://localhost:5000  

โ ๐Ÿ“‹ Manage the Container

โ ๐Ÿ” Check Running Containers:
docker ps  
โ ๐Ÿšซ Stop the Container:
docker stop <container-id>  
โ ๐Ÿ—‘ Remove the Container:
docker rm <container-id>  

โ ๐Ÿ›  Customization

  • Modify the containerโ€™s exposed port by changing -p 5000:5000 to another port (e.g., -p 8080:5000).
  • Update the application by rebuilding the image with a new Dockerfile.

โ ๐Ÿ— Notes

โœ… Ensure Docker is installed and running before executing commands.
โœ… Use Docker Compose for multi-container deployments.
โœ… If port 5000 is already in use, adjust the port mapping.


โ ๐ŸŽฎ Start Playing!

Your Snake Game is now ready to play. Have fun and aim for a high score! ๐Ÿ๐Ÿ”ฅ

Tag summary

Content type

Image

Digest

sha256:39b4de4e0โ€ฆ

Size

48.9 MB

Last updated

over 1 year ago

docker pull sidhu1504/snake-game