paint-brush
Flask API Containerization using Dockerby@miketechgame
5,498 reads
5,498 reads

Flask API Containerization using Docker

by Mike Wolfe3mNovember 25th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Mike Wolfe

Mike Wolfe

@miketechgame

Software Developer, Tech Enthusiast, Runner.

Learn More
LEARN MORE ABOUT @MIKETECHGAME'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Mike Wolfe HackerNoon profile picture
Mike Wolfe@miketechgame
Software Developer, Tech Enthusiast, Runner.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Learnrepo