To build:
docker build -t moretonb/speakops-be:lastest .
To view latest two docker images:
docker images | head -n2
To run:
docker run -d -t -p 5000:5000 --name speakops-be speakops-be:lastest
To check logs:
docker logs speakops-be
To remove:
docker rm speakops-be
To login:
docker login
To push image up to docker hub (kicks off a deployment if tagged as latest):
docker push moretonb/speakops-be:latest
Gotchas:
- Make sure the appsetting WEBSITES_PORT hooks up the right port on the container (WEBSITES_PORT=5000)