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.
- Base image:
ubuntu:latest - Installs required packages:
gcc,wget - Downloads and compiles 2048.c
- Runs the compiled binary
docker run -it welbornt/2048git clone https://github.com/welbornt/docker-2048.gitcd docker-2048 && docker build -t welbornt/2048 .docker run -it welbornt/2048Note: The
-itflag is required to enable interactive play within the terminal.
The 2048 CLI source is available under the MIT License. See the 2048.c GitHub repository for details about its license.
- Game source: mevdschee/2048.c