Add Dockerfile and update README for Docker deployment
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -1 +1,17 @@
|
||||
just a fun project for my kid, he loves the Conways game of life.
|
||||
# The Game of Life
|
||||
|
||||
This project is a web-based implementation of Conway's Game of Life.
|
||||
|
||||
## How to Run with Docker
|
||||
|
||||
1. Build the Docker image:
|
||||
```bash
|
||||
docker build -t game-of-life .
|
||||
```
|
||||
|
||||
2. Run the container:
|
||||
```bash
|
||||
docker run -d -p 8080:80 game-of-life
|
||||
```
|
||||
|
||||
3. Open your browser and go to `http://localhost:8080` to see the Game of Life in action.
|
||||
Reference in New Issue
Block a user