DevOps Classroom notes 13/May/2026

Containerizing the application

  • Refer Here for the code written in python to create a REST API (Fast API)
  • To run this application, we need
    • python
    • uv
    • dependencies to be installed
  • Code to be copied
  • Application runs on port 18000
  • the command to start the application uvicorn main:app --host 0.0.0.0 --port 18000 or uv run main.py
  • Refer Here for code changes
  • cd into the folder
  • Create a image docker image build -t fastapi:1.0 .
  • Containerization requires us to identify

    • What is required to run this application (python, nginx, java, dotnet, nodejs)
    • Any extra packages to be installed or conifgure
    • where should be copy the code
    • On which port does your application work
    • HOw to start the application
  • Refer Here and follow this tutorial to containerize node js application use only Docker official images.

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube