Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 720 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 720 Bytes

docker-silex

This is a simple Hello World project written in Silex, running on Docker.

How to use it?

Basically, you need to have Docker installed.

Build an image

Build an image based on Dockerfile:

docker build -t docker-silex .

Run a container

Run a container based on created image:

docker run -d docker-silex

Check container's IP address

docker inspect --format='{{ .NetworkSettings.IPAddress }}' $(docker ps -l -q)

Test the app

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