Skip to content

tdjustus/docker-2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

2048 CLI Game in Docker

This project packages the classic terminal-based 2048 game written in C into a Docker container based on Ubuntu. It fetches the source code, compiles it using GCC, and runs it in the terminal when the container is executed.


Contents

  • Base image: ubuntu:latest
  • Installs required packages: gcc, wget
  • Downloads and compiles 2048.c
  • Runs the compiled binary

Usage

Run the published image from Docker Hub

docker run -it welbornt/2048

Docker Hub Link

--- OR ---

0. Clone the repository

git clone https://github.com/welbornt/docker-2048.git

1. Build the Docker Image

cd docker-2048 && docker build -t welbornt/2048 .

2. Run the Game

docker run -it welbornt/2048

Note: The -it flag is required to enable interactive play within the terminal.


License

The 2048 CLI source is available under the MIT License. See the 2048.c GitHub repository for details about its license.


Credits

About

Example Docker image. 2048 in the CLI (see README.md)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors