Skip to content

feat(ml): Add Docker support for Render deployment #82

Description

@Harsh-vardhan09

Summary

Containerize the ML FastAPI service to simplify deployment and make it compatible with container-based platforms such as Render.

Problem

The ML service currently requires manual setup:

  • Create a Python virtual environment
  • Install dependencies manually
  • Ensure trained model artifacts are present
  • Start the FastAPI server with Uvicorn

This increases onboarding time and makes deployment more error-prone.

Proposed Solution

Dockerize the ML service by adding the necessary Docker configuration.

Tasks

  • Add ML/Dockerfile
  • Add ML/.dockerignore
  • Install dependencies inside the Docker image
  • Copy application source and model artifacts into the container
  • Expose the application port
  • Start FastAPI using Uvicorn
  • Support Render's dynamic PORT environment variable
  • Document Docker build and deployment steps in SETUP.md and README.md

Example

Build the image:

docker build -t athlead-ml ./ML

Metadata

Metadata

Labels

Advanceimplementation needs someone advance for thisOpen-to-AllThis is an issue that can be assigned to anyone and work on it.Priority:HIGHThis is High priority Issue that must be solvedenhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions