Metadata-Version: 2.4
Name: inferyx
Version: 1.0.5
Summary: A python package for Inferyx analytics tool
Home-page: https://github.com/apatil-inferyx/platform
Author: apatil-inferyx
Author-email: apatil@inferyx.com
Project-URL: Bug Tracker, https://github.com/apatil-inferyx/platform/issues
Description-Content-Type: text/markdown
Requires-Dist: pandas
Requires-Dist: python-box==6.0.2
Requires-Dist: pyYAML
Requires-Dist: tqdm
Requires-Dist: ensure==1.0.4
Requires-Dist: joblib
Requires-Dist: types-PyYAML
Requires-Dist: requests==2.32.3
Requires-Dist: mysql-connector-python==9.3.0
Requires-Dist: sqlalchemy
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: project-url
Dynamic: requires-dist
Dynamic: summary

# inferyx-genai Docker Build & Push Guide

## What is this?

This is the **GenAI module** — a Python/FastAPI app running on port 8000.
Docker image: `inferyxhub/inferyx-genai`

---

## How it works (the simple way)

Instead of building everything from scratch inside Docker (slow, downloads GBs of deps),
we use the **existing stable image as a base** and just layer our updated code on top.

```
inferyxhub/inferyx-genai:1.0.0  ← existing stable base
        +
  your updated code (main.py, src/, requirements.txt)
        =
inferyxhub/inferyx-genai:1.0.1  ← new version
```

This keeps the build **fast** (seconds, not minutes) and avoids dependency issues.

---

## Dockerfile

Located at `Dockerfile` in this directory:

```dockerfile
FROM inferyxhub/inferyx-genai:1.0.0

WORKDIR /app

COPY main.py .
COPY src/ inferyx_ai/
COPY requirements.txt .

RUN pip install --no-cache-dir -r requirements.txt

EXPOSE 8000

CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
```

---

## Steps to release a new version

### 1. Make your code changes
Edit `main.py`, files under `src/`, or `requirements.txt` as needed.

### 2. Build the image
```bash
cd /home/Aakash/git-inferyx/platform/framework-web/deploy/script/module

docker build -t inferyxhub/inferyx-genai:1.0.1 .
```

### 3. Login to Docker Hub (in your local terminal)
```bash
docker login
```
Enter your Docker Hub credentials for `inferyxhub`.

### 4. Push
```bash
docker push inferyxhub/inferyx-genai:1.0.1
```

---

## For the next version (e.g. 1.0.2)

Update the `FROM` line in the Dockerfile to use the previous version as base:
```dockerfile
FROM inferyxhub/inferyx-genai:1.0.1
```

Then build and push:
```bash
docker build -t inferyxhub/inferyx-genai:1.0.2 .
docker push inferyxhub/inferyx-genai:1.0.2
```

---

## Notes

- App runs on **port 8000**
- Built on **Python 3.12**
- `ensure==1.0.4` is required (not `1.0.2`) — conflict with the `inferyx` package
- `docker login` must be run in a real terminal (not VS Code integrated terminal) as it needs interactive input
