Spaces:
Running
Running
ea4all-docker-load-private-from-public-spaces
Browse files- Dockerfile +8 -1
Dockerfile
CHANGED
@@ -15,11 +15,18 @@ ENV HOME=/home/user \
|
|
15 |
|
16 |
# Get secret OPENAI_API_KEY and clone it as repo at buildtime / changed required to true
|
17 |
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
20 |
COPY --chown=user . $HOME/app
|
21 |
|
22 |
-
|
|
|
|
|
23 |
COPY ./requirements.txt .
|
24 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
25 |
|
|
|
15 |
|
16 |
# Get secret OPENAI_API_KEY and clone it as repo at buildtime / changed required to true
|
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/secrtes/HF_TOKEN > cli_token
|
20 |
+
RUN pip install -U "huggingface_hub[cli]"
|
21 |
+
RUN huggingface-cli login $(cat cli_token)
|
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/app
|
26 |
|
27 |
+
|
28 |
+
|
29 |
+
RUN git clone https://huggingface.co/spaces/avfranco/ea4all-docker
|
30 |
COPY ./requirements.txt .
|
31 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
32 |
|