This repository contains a Dockerfile that builds an image for an Nginx web server with the popular 2048 game.
Docker installed on your system.
- Clone this repository:
git clone https://github.com/nolliechyTW/docker-2048.git
- Navigate to the project directory:
cd docker-2048
- Build the Docker image:
docker build -t nginx-2048 .
- Run a Docker container based on the created image:
docker run -p 80:80 nginx-2048
- Open your web browser and visit http://localhost to access the 2048 game.
If you want to use a different Nginx configuration file or modify any other settings, you can update the nginx.conf
file and rebuild the Docker image.
The 2048 game is developed and maintained by Gabriele Cirulli. For more information about the game, please refer to the official repository.