-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. added a second dockerfile to download the biggest python dependency & store it as a container to serve as a base image for the main container 2. update the dependencies in requirements.txt 3. update k8s-manifests for deployment & configmap 4. couple of other minor changes
- Loading branch information
Sameer Kulkarni
committed
Aug 16, 2024
1 parent
b1be10c
commit 0104be9
Showing
7 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
k8s-manifests/** | ||
.github/** | ||
__pycache__/** | ||
insf_venv/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
__pycache__/** | ||
insf_venv/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
FROM python:3.10-slim | ||
FROM ghcr.io/infracloudio/python-langchain-huggingface:3.10-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app | ||
COPY .streamlit/** /app/.streamlit/ | ||
COPY templates/** /app/templates/ | ||
COPY app.py multi_tenant_rag.py requirements.txt tei_rerank.py /app/ | ||
|
||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
EXPOSE 8051 | ||
|
||
CMD ["streamlit", "run", "app.py", "--server.address", "0.0.0.0"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM python:3.10-slim | ||
|
||
WORKDIR /app | ||
|
||
RUN pip install --no-cache-dir langchain_huggingface==0.0.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters