Spaces:
Sleeping
Sleeping
Mimi
commited on
Commit
·
480ac8b
1
Parent(s):
e6b0ff7
asdf
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -5,9 +5,9 @@ COPY ./requirements.txt /code/requirements.txt
|
|
5 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
6 |
|
7 |
COPY . /code/app
|
8 |
-
RUN --mount=type=secret, id=HF_TOKEN
|
9 |
cat /run/secrets/HF_TOKEN > /tmp/HF_TOKEN && \
|
10 |
-
huggingface-cli login --token "$(cat /
|
11 |
|
12 |
RUN useradd -m -u 1000 user
|
13 |
ENV HOME=/home/user \
|
|
|
5 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
6 |
|
7 |
COPY . /code/app
|
8 |
+
RUN --mount=type=secret, id=HF_TOKEN \
|
9 |
cat /run/secrets/HF_TOKEN > /tmp/HF_TOKEN && \
|
10 |
+
huggingface-cli login --token "$(cat /tmp/HF_TOKEN)" --add-to-git-credential
|
11 |
|
12 |
RUN useradd -m -u 1000 user
|
13 |
ENV HOME=/home/user \
|