Spaces:
Sleeping
Sleeping
Commit
·
2d55c6e
1
Parent(s):
83814e0
Add huggingface-cli login command to Dockerfile for authentication
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
|
@@ -21,6 +21,8 @@ WORKDIR /app
|
|
| 21 |
# Install Python dependencies (cached as long as requirements.txt doesn't change)
|
| 22 |
COPY requirements.txt .
|
| 23 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
|
|
|
|
|
|
| 24 |
|
| 25 |
# Copy project files (this step is later to allow caching of pip install)
|
| 26 |
COPY . .
|
|
|
|
| 21 |
# Install Python dependencies (cached as long as requirements.txt doesn't change)
|
| 22 |
COPY requirements.txt .
|
| 23 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
| 24 |
+
RUN huggingface-cli login --token $HF_TOKEN
|
| 25 |
+
|
| 26 |
|
| 27 |
# Copy project files (this step is later to allow caching of pip install)
|
| 28 |
COPY . .
|