diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..eb90619 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM python:3.13-slim +WORKDIR /app +COPY . ./sahayak-RAG +WORKDIR /app/sahayak-RAG +RUN pip install --no-cache-dir -r requirements.txt + +CMD ["python","app.py"] + diff --git a/README.md b/README.md index b5b62f0..d1edb7b 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ Sahayak is a revolutionary multilingual job portal specifically designed for blu ``` sahayak/ +|__ Dockerfile # Build docker image ├── app.py # Main Flask application ├── requirements.txt # Python dependencies ├── data/ @@ -86,8 +87,8 @@ sahayak/ 1. **Clone the repository** ```bash -git clone -cd sahayak +git clone https://github.com/codeIntrovert/sahayak-RAG.git +cd sahayak-RAG ``` 2. **Install dependencies** @@ -105,6 +106,34 @@ python app.py 4. **Access the platform** Open your browser and navigate to `http://localhost:5000` + +## **Installation steps using docker** + +1. **Clone the repository** + +```bash +git clone -b dockerize https://github.com/ramimK0bir/sahayak-RAG.git +cd sahayak-RAG +``` + +2. **Build docker image** +```bash +docker build -t sahayak-rag:0.0.1 . +``` + +3. **Run docker image** +```bash +docker run -p5000:5000 sahayak-rag:0.0.1 +``` +or +4. **Run docker image with persistent data folder** +```bash +docker run -v $(pwd)/data:/app/sahayak-RAG/data -p5000:5000 sahayak-rag:0.0.1 +``` +5. **Access the platform** + Open your browser and navigate to [localhost:5000](http://localhost:5000) + + ## 🎯 Core Functionality ### Intelligent Job Search diff --git a/app.py b/app.py index 34bfe6e..fcaec13 100644 --- a/app.py +++ b/app.py @@ -11,4 +11,4 @@ register_blueprints(app) if __name__ == "__main__": - app.run(debug=True) \ No newline at end of file + app.run(host="0.0.0.0")