Spaces:
Sleeping
Sleeping
Mimi
commited on
Commit
·
e6b0ff7
1
Parent(s):
57a6dce
asdf
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -3,8 +3,10 @@ FROM python:3.12
|
|
| 3 |
WORKDIR /code
|
| 4 |
COPY ./requirements.txt /code/requirements.txt
|
| 5 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
|
| 6 |
COPY . /code/app
|
| 7 |
-
RUN --mount=type=secret, id=HF_TOKEN,
|
|
|
|
| 8 |
huggingface-cli login --token "$(cat /run/secrets/HF_TOKEN)" --add-to-git-credential
|
| 9 |
|
| 10 |
RUN useradd -m -u 1000 user
|
|
|
|
| 3 |
WORKDIR /code
|
| 4 |
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, required=true && \
|
| 9 |
+
cat /run/secrets/HF_TOKEN > /tmp/HF_TOKEN && \
|
| 10 |
huggingface-cli login --token "$(cat /run/secrets/HF_TOKEN)" --add-to-git-credential
|
| 11 |
|
| 12 |
RUN useradd -m -u 1000 user
|