raditya3 commited on
Commit
0ddf01f
·
1 Parent(s): b5d600f

Added dockerfile and docker-compose configuration for easy setup

Browse files
Files changed (3) hide show
  1. README.md +12 -0
  2. build.dockerfile +11 -0
  3. docker-compose.yml +8 -0
README.md CHANGED
@@ -130,6 +130,18 @@ streamlit run streamlit_app.py
130
 
131
  **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.
132
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  <br/>
134
 
135
  ---
 
130
 
131
  **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.
132
 
133
+ <br/>
134
+
135
+ ### Docker
136
+
137
+ 1. Build image and start application
138
+ ```bash
139
+ docker-compose up
140
+ ```
141
+ 2. Open ```localhost:80``` on your browser
142
+
143
+
144
+
145
  <br/>
146
 
147
  ---
build.dockerfile ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11.0-slim
2
+ WORKDIR /data
3
+ COPY . .
4
+ RUN apt-get update
5
+ RUN apt-get install -y build-essential python-dev git
6
+ RUN pip install -U pip setuptools wheel
7
+ RUN pip install -r requirements.txt
8
+ RUN python run_first.py
9
+ ENTRYPOINT [ "streamlit", "run", "streamlit_app.py"]
10
+
11
+ EXPOSE 8501
docker-compose.yml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ resume-matcher:
3
+ image : resume-matcher
4
+ build:
5
+ context: ./
6
+ dockerfile : build.dockerfile
7
+ ports:
8
+ - 80:8501