This is a simple Hello World project written in Silex, running on Docker.
Basically, you need to have Docker installed.
Build an image based on Dockerfile
:
docker build -t docker-silex .
Run a container based on created image:
docker run -d docker-silex
docker inspect --format='{{ .NetworkSettings.IPAddress }}' $(docker ps -l -q)
Curl or open in a web browser URL based on IP address followed by /hello/World
eg.:
curl http://172.17.0.5/hello/World