Flask API Containerization using Docker

Written by miketechgame | Published 2020/11/25
Tech Story Tags: docker | python | flask | api | software-development | programming | containers | hackernoon-top-story | web-monetization

TLDR Flask API Containerization using Docker is a way of the future. This tutorial uses a simple Flask API, put it in a Docker container, and then test it out using Postman. The API does not have error handling nor utilize any authentication in your API. The Dockerfile is ready to go, we need to create a Dockerfile and run the build command: docker build -tapi-test. To verify that the image was created, we can go ahead and run it: docker run -d -p 5000:5000 API-test. Alternatively, the output of this command will give us a Container Id.via the TL;DR App

no story

Written by miketechgame | Software Developer, Tech Enthusiast, Runner.
Published by HackerNoon on 2020/11/25