Public | Automated Build

Last pushed: 2 years ago
Short Description
Dockerfile of NoughtsAndCrosses application environment - Debian NGINX FANN PHP-FPM (FANN).
Full Description


A PHP application that learns to play Xs and Os.

It uses artifical neural networks to improve gameplay based on numeric weights tuned on experience.

The application demonstrates machine learning in a PHP game.

Application Environment

Native Docker

You can build and run the NoughtsAndCrosses application environment using native Docker.

On your local machine, build the docker image and then run the container.

Use the Makefile to build the Docker NoughtsAndCrosses image.

$ make -f ./docker/Makefile build

You can also use Makefile [containers|clean|clean-image|exec|ip|machines|run].

Visit: <docker_machine_ip>:<docker_container_host_port_80>/index.php.


Vagrant up creates a virtual machine with Docker installed.


  • OS: Ubuntu 14.04.1 LTS (Trusty Tahr) - 64-bit
  • Memory: 512 MB

Provisioning builds the Docker image noughtsandcrosses-image and runs the Docker container noughtsandcrosses-container inside the vm.

# Spin up Vagrant VM.
$ vagrant up

# SSH to Vagrant VM at host port 2222.
$ vagrant ssh

# Show Docker images.
$ docker images

# Show Docker running containers.
$ docker ps -a

# Access Docker container.
$ docker exec -it noughtsandcrosses-container bash



  • Segmentation fault: train file in wrong format.
Docker Pull Command
Source Repository

Comments (0)