Skip to content

Commit 2857c47

Browse files
committed
Refactor Dockerfile to use --no-cache-dir for pip installation and update README for clarity on deployment details
1 parent 195eabd commit 2857c47

3 files changed

Lines changed: 15 additions & 9 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ WORKDIR /app
44

55
COPY . /app
66

7-
RUN pip install -r requirements.txt
7+
RUN pip install --no-cache-dir -r requirements.txt
88

99
CMD ["python3", "app.py"]

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
This project implements a complete **MLOps pipeline** for a **U.S. Visa Approval Classification System**, covering all essential components — from **data ingestion** to **deployment and monitoring**.
44
The goal is to predict whether a visa application will be approved or denied, using machine learning and production-grade MLOps tools.
55

6+
🌍 Live URL
7+
8+
🔗 http://44.203.207.140:8080/
9+
10+
The application is deployed on AWS EC2 using Docker containers, with the image stored and pulled directly from AWS Elastic Container Registry (ECR) through an automated GitHub Actions CI/CD pipeline.
11+
612
---
713

814
## 📘 Overview

app.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,17 @@ async def index(request: Request):
7373

7474

7575

76-
@app.get("/train")
77-
async def trainRouteClient():
78-
try:
79-
train_pipeline = TrainingPipeline()
76+
# @app.get("/train")
77+
# async def trainRouteClient():
78+
# try:
79+
# train_pipeline = TrainingPipeline()
8080

81-
train_pipeline.run_pipeline()
81+
# train_pipeline.run_pipeline()
8282

83-
return Response("Training successful !!")
83+
# return Response("Training successful !!")
8484

85-
except Exception as e:
86-
return Response(f"Error Occurred! {e}")
85+
# except Exception as e:
86+
# return Response(f"Error Occurred! {e}")
8787

8888

8989

0 commit comments

Comments
 (0)