Posts

Showing posts from September, 2022

How to containerize applications using Docker

Image
A container is a means of containing everything an application needs to run: binary files, libraries, configurations etc. Running your application within a container makes it highly portable. Deployment of updated software is often made complicated by certain infrastructure challenges such as trying to make applications behave consistently across different hosting environments. Containerization avoids this challenge by providing a standardized environment for the application to run in. A further advantage of containers is that they consume far less resource than other means of isolation, such as virtual machines (VMs). An example of how to create containerized application in Visual Studio Code. 1. Create and open a new working folder with application code Create the app folder and add the main.py file to the folder. Create a simple Flask application in the main.py file that displays some text that is displayed in your browser when you access the application. main.py...