https://twogg-timeapp.herokuapp.com/
Create image with:
docker build --tag timeapp:v1 .
Run with:
docker run -d -p 80:80 --name timeapp timeapp:v1
Login to running container
docker exec -ti --user root timeapp /bin/sh
Heroku deployment documentation:
- https://devcenter.heroku.com/articles/git#http-git-authentication
- https://devcenter.heroku.com/articles/deploying-nodejs
Heroku sets the PORT, so we have to bind and listens on tcp/80.
const port = process.env.PORT || 80