Commit
·
8182be0
1
Parent(s):
f49fee2
New Approach
Browse files- .github/workflows/main.yml +7 -13
- Dockerfile +2 -7
.github/workflows/main.yml
CHANGED
@@ -10,22 +10,16 @@ jobs:
|
|
10 |
sync-to-hub:
|
11 |
runs-on: ubuntu-latest
|
12 |
steps:
|
|
|
13 |
- name: Checkout code
|
14 |
uses: actions/checkout@v4
|
15 |
with:
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
- name: LFS Track
|
24 |
-
run: |
|
25 |
-
git lfs track "data/9.0 administrators_guide.pdf" "data/op9_solutions_guide.pdf" "data/op_user_guide.pdf" "indexes/chroma.sqlite3" "indexes/c607d7bb-5476-4bdc-8df3-36895a74111c/data_level0.bin"
|
26 |
-
|
27 |
-
- name: Checkout LFS objects
|
28 |
-
run: git lfs checkout
|
29 |
|
30 |
- name: Add remote
|
31 |
env:
|
|
|
10 |
sync-to-hub:
|
11 |
runs-on: ubuntu-latest
|
12 |
steps:
|
13 |
+
# Fetch only the root files
|
14 |
- name: Checkout code
|
15 |
uses: actions/checkout@v4
|
16 |
with:
|
17 |
+
sparse-checkout: |
|
18 |
+
images
|
19 |
+
README.md
|
20 |
+
Dockerfile
|
21 |
+
requirements.txt
|
22 |
+
sparse-checkout-cone-mode: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
- name: Add remote
|
25 |
env:
|
Dockerfile
CHANGED
@@ -13,8 +13,7 @@ RUN pip install --upgrade pip && \
|
|
13 |
# install git & git-lfs
|
14 |
RUN apt-get update && \
|
15 |
apt-get upgrade -y && \
|
16 |
-
apt-get install -y git
|
17 |
-
apt-get install -y git-lfs
|
18 |
|
19 |
# Set up a new user named "user" with user ID 1000
|
20 |
RUN useradd -m -u 1000 user
|
@@ -31,11 +30,7 @@ WORKDIR $HOME/app
|
|
31 |
|
32 |
# Expose the secret HUGGINGFACEHUB_API_TOKEN at buildtime and use its value to clone the repo
|
33 |
RUN --mount=type=secret,id=HUGGINGFACEHUB_API_TOKEN,mode=0444,required=true \
|
34 |
-
git clone --depth 1 https://
|
35 |
-
|
36 |
-
# After cloning, navigate into the repository directory and pull Git LFS files
|
37 |
-
RUN cd $HOME/app && \
|
38 |
-
git lfs pull
|
39 |
|
40 |
# Use ENTRYPOINT to specify the command to run when the container starts
|
41 |
ENTRYPOINT ["python", "app.py"]
|
|
|
13 |
# install git & git-lfs
|
14 |
RUN apt-get update && \
|
15 |
apt-get upgrade -y && \
|
16 |
+
apt-get install -y git
|
|
|
17 |
|
18 |
# Set up a new user named "user" with user ID 1000
|
19 |
RUN useradd -m -u 1000 user
|
|
|
30 |
|
31 |
# Expose the secret HUGGINGFACEHUB_API_TOKEN at buildtime and use its value to clone the repo
|
32 |
RUN --mount=type=secret,id=HUGGINGFACEHUB_API_TOKEN,mode=0444,required=true \
|
33 |
+
git clone --depth 1 https://github.com/nikhilkomakula/llm-rag-op-chatbot.git $HOME/app
|
|
|
|
|
|
|
|
|
34 |
|
35 |
# Use ENTRYPOINT to specify the command to run when the container starts
|
36 |
ENTRYPOINT ["python", "app.py"]
|