Flask API Containerization using Dockerby@miketechgame
5,487 reads

Flask API Containerization using Docker

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

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.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Flask API Containerization using Docker
Mike Wolfe HackerNoon profile picture

@miketechgame

Mike Wolfe

Software Developer, Tech Enthusiast, Runner.


Receive Stories from @miketechgame

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!