Spaces:
Running
on
T4
Running
on
T4
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -54,6 +54,9 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \
|
|
54 |
COPY ./requirements.txt /tmp/requirements.txt
|
55 |
RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt
|
56 |
|
|
|
|
|
|
|
57 |
COPY --chown=1000 . ${HOME}/app
|
58 |
ENV PYTHONPATH=${HOME}/app \
|
59 |
PYTHONUNBUFFERED=1 \
|
|
|
54 |
COPY ./requirements.txt /tmp/requirements.txt
|
55 |
RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt
|
56 |
|
57 |
+
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
|
58 |
+
huggingface-cli login --token=$(cat /run/secrets/HF_TOKEN)
|
59 |
+
|
60 |
COPY --chown=1000 . ${HOME}/app
|
61 |
ENV PYTHONPATH=${HOME}/app \
|
62 |
PYTHONUNBUFFERED=1 \
|