Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
|
@@ -11,6 +11,13 @@ ENV HUGGINGFACE_HUB_CACHE /code/cache
|
|
| 11 |
# Create the cache directory and give it open permissions.
|
| 12 |
RUN mkdir -p /code/cache && chmod 777 /code/cache
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
# Copy the requirements file into the container
|
| 15 |
COPY ./requirements.txt /code/requirements.txt
|
| 16 |
|
|
|
|
| 11 |
# Create the cache directory and give it open permissions.
|
| 12 |
RUN mkdir -p /code/cache && chmod 777 /code/cache
|
| 13 |
|
| 14 |
+
# --- THIS IS THE FIX ---
|
| 15 |
+
# Install git, which is required by pip to install packages from a git repository.
|
| 16 |
+
# apt-get update refreshes the package list.
|
| 17 |
+
# -y flag automatically confirms the installation.
|
| 18 |
+
# --no-install-recommends keeps the image size small.
|
| 19 |
+
RUN apt-get update && apt-get install -y git --no-install-recommends
|
| 20 |
+
|
| 21 |
# Copy the requirements file into the container
|
| 22 |
COPY ./requirements.txt /code/requirements.txt
|
| 23 |
|