This is a simple web app that returns the current UTC date and time as a json object
{
"year": "2020",
"month": "07",
"day": "19",
"hour": "13",
"minute": "36",
"second": "05",
"microsecond": "474651"
}Clone project and cd to the DateWebApp directory
Build image:
docker build --tag datewebapp .
Run image:
docker run --restart=always --name=datewebapp -d -p 5000:5000 datewebapp
Navigate to http://localhost:5000 or curl http://localhost:5000
Hosted example located here: http://datewebapp.inmy.coffee/