Build & run docker

Build -> execute shell

docker build -t flask .

Post-build Actions -> execute shell

docker rm -f freeports
docker run -d -p 80:5000 --name freeports flask

https://www.thepolyglotdeveloper.com/2017/04/continuous-deployment-of-web-application-containers-with-jenkins-and-docker/

build & run using compose

Build -> execute shell

docker-compose down
docker-compose up -d --build

Last updated

Was this helpful?