Spaces:
Sleeping
Sleeping
Mimi
commited on
Commit
·
06a3a1d
1
Parent(s):
480ac8b
asdf
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
@@ -6,7 +6,7 @@ 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
|
|
|
6 |
|
7 |
COPY . /code/app
|
8 |
RUN --mount=type=secret, id=HF_TOKEN \
|
9 |
+
sh -c '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
|