Skip to content

Commit

Permalink
Merge pull request #77 from raditya3/docker-support
Browse files Browse the repository at this point in the history
Added dockerfile and docker-compose configuration for easy setup
  • Loading branch information
srbhr authored Jul 29, 2023
2 parents 2eec963 + c78b90a commit 14fe4fa
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,18 @@ streamlit run streamlit_app.py

**Additional Note**: The Vector Similarity part is precomputed to optimize performance due to the resource-intensive nature of sentence encoders that require significant GPU and RAM resources. If you are interested in leveraging this feature in a Google Colab environment for free, refer to the upcoming blog (link to be provided) for further guidance.

<br/>

### Docker

1. Build image and start application
```bash
docker-compose up
```
2. Open ```localhost:80``` on your browser



<br/>

---
Expand Down
11 changes: 11 additions & 0 deletions build.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM python:3.11.0-slim
WORKDIR /data
COPY . .
RUN apt-get update
RUN apt-get install -y build-essential python-dev git
RUN pip install -U pip setuptools wheel
RUN pip install -r requirements.txt
RUN python run_first.py
ENTRYPOINT [ "streamlit", "run", "streamlit_app.py"]

EXPOSE 8501
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
resume-matcher:
image : resume-matcher
build:
context: ./
dockerfile : build.dockerfile
ports:
- 80:8501

0 comments on commit 14fe4fa

Please sign in to comment.