Dockerfile of NoughtsAndCrosses application environment - Debian NGINX FANN PHP-FPM (FANN).
2.1K
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.
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].
Browser:
Visit: <docker_machine_ip>:<docker_container_host_port_80>/index.php.
Vagrant up creates a virtual machine with Docker installed.
VM:
Provisioning:
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
Content type
Image
Digest
Size
273.4 MB
Last updated
almost 11 years ago
docker pull ericmdev/noughtsandcrosses