Spaces:
Running
Running
ea4all-docker-load-private-from-public-spaces
Browse files- Dockerfile +11 -10
- requirements.txt +0 -12
Dockerfile
CHANGED
|
@@ -17,19 +17,20 @@ ENV HOME=/home/user \
|
|
| 17 |
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true
|
| 18 |
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
|
| 19 |
cat /run/secrets/HF_TOKEN > cli_token
|
| 20 |
-
RUN pip install -U "huggingface_hub[cli]"
|
| 21 |
-
RUN
|
| 22 |
-
|
| 23 |
|
| 24 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 25 |
-
COPY --chown=user . $HOME
|
| 26 |
-
|
| 27 |
|
| 28 |
# Clone and run ea4all-agent
|
| 29 |
-
RUN git clone https://avfranco:$(cat cli_token)@huggingface.co/spaces/avfranco/ea4all-agent
|
| 30 |
-
|
| 31 |
-
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 32 |
|
| 33 |
-
|
|
|
|
|
|
|
| 34 |
|
| 35 |
-
CMD ["python",
|
|
|
|
| 17 |
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true
|
| 18 |
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
|
| 19 |
cat /run/secrets/HF_TOKEN > cli_token
|
| 20 |
+
RUN pip install -U "huggingface_hub[cli]"
|
| 21 |
+
RUN git init & git config --global credential.helper store
|
| 22 |
+
RUN huggingface-cli login --token $(cat cli_token) --add-to-git-credential
|
| 23 |
|
| 24 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 25 |
+
COPY --chown=user . $HOME
|
|
|
|
| 26 |
|
| 27 |
# Clone and run ea4all-agent
|
| 28 |
+
#RUN git clone -b main https://avfranco:$(cat cli_token)@huggingface.co/spaces/avfranco/ea4all-agent
|
| 29 |
+
#WORKDIR /home/user/ea4all-agent
|
| 30 |
+
#RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 31 |
|
| 32 |
+
RUN git clone -b main https://huggingface.co/spaces/avfranco/ea4all-docker-demo
|
| 33 |
+
WORKDIR /home/user/ea4all-docker-demo
|
| 34 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 35 |
|
| 36 |
+
CMD ["python","main.py"]
|
requirements.txt
DELETED
|
@@ -1,12 +0,0 @@
|
|
| 1 |
-
gradio==4.18.0
|
| 2 |
-
faiss-cpu==1.7.4
|
| 3 |
-
filetype==1.2.0
|
| 4 |
-
langchain==0.1.4
|
| 5 |
-
langchain-community==0.0.14
|
| 6 |
-
langchain-core==0.1.16
|
| 7 |
-
langchain-openai==0.0.2.post1
|
| 8 |
-
openai==1.10.0
|
| 9 |
-
openpyxl==3.1.2
|
| 10 |
-
pandas==2.1.3
|
| 11 |
-
python-dotenv==1.0.0
|
| 12 |
-
tiktoken==0.5.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|