Skip to content

Commit 3022058

Browse files
committed
Added docker docs
1 parent 943fea0 commit 3022058

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ A web multiplayer Tron game like with curves
66
## Installation
77

88
* [Get your local Curvytron server in 1 minute!](doc/installation.md)
9+
* [...or launch a Docker container with the game!](doc/docker.md)
910

1011
---
1112

doc/docker.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Prerequisite
2+
3+
You need to install Docker.
4+
5+
## Building an Image
6+
7+
__Clone the repository__
8+
9+
git clone https://github.com/Elao/curvytron.git
10+
cd curvytron
11+
12+
__Build the docker image__
13+
14+
docker build -t yourname/curvytron .
15+
16+
## Launch server
17+
18+
docker run -d --name curvytron -p 8080:8080 yourname/curvytron
19+
20+
## Play
21+
22+
Go to [http://localhost:8080](http://localhost:8080/)
23+
Join a room, choose a player name and play!

doc/installation.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
Curvytron runs on [node.js >= v0.10](https://nodejs.org/).
44
You need to install node on the machine that will run the Curvytron server.
55

6+
Alternatively, you could also [run Curvytron on Docker](doc/docker.md).
7+
68
## Installation
79

810
__Clone the repository__

0 commit comments

Comments
 (0)