Dockerizing Python App on App Server

Day 46 of #100DaysOfDevOps >Dockerized a Python application today and deployed it on an app server. >Created a Dockerfile for the Python app, installed dependencies using requirements.txt, exposed the required port, and ran the application using server.py. >Built a custom image and deployed it as a container with proper port mapping. Finally tested the app using curl and confirmed it was running as expected. Commands used: >docker build -t nautilus/python-app . >docker run -d --name pythonapp_nautilus -p 8095:5001 nautilus/python-app >curl http://localhost:8095/ This task helped me understand the full flow of taking a simple app and running it inside a container. Learning step by step. #100DaysOfDevOps #DevOpsJourney #Docker #Python #Linux #HandsOnLearning #KodeKloud

  • graphical user interface, text

To view or add a comment, sign in

Explore content categories