Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -4,9 +4,12 @@ FROM python:3.10-slim
|
|
| 4 |
# Set the working directory in the container
|
| 5 |
WORKDIR /code
|
| 6 |
|
| 7 |
-
#
|
| 8 |
ENV HF_HOME /code/.cache
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
# Copy the requirements file into the container
|
| 11 |
COPY ./requirements.txt /code/requirements.txt
|
| 12 |
|
|
@@ -14,7 +17,6 @@ COPY ./requirements.txt /code/requirements.txt
|
|
| 14 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 15 |
|
| 16 |
# Copy the rest of the application code into the container
|
| 17 |
-
# We no longer need to copy .env since we use secrets
|
| 18 |
COPY ./app.py /code/app.py
|
| 19 |
|
| 20 |
# Make port 7860 available to the world outside this container
|
|
|
|
| 4 |
# Set the working directory in the container
|
| 5 |
WORKDIR /code
|
| 6 |
|
| 7 |
+
# Set a writeable cache directory for Hugging Face models
|
| 8 |
ENV HF_HOME /code/.cache
|
| 9 |
|
| 10 |
+
# NEW: Install git into the container
|
| 11 |
+
RUN apt-get update && apt-get install -y git
|
| 12 |
+
|
| 13 |
# Copy the requirements file into the container
|
| 14 |
COPY ./requirements.txt /code/requirements.txt
|
| 15 |
|
|
|
|
| 17 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 18 |
|
| 19 |
# Copy the rest of the application code into the container
|
|
|
|
| 20 |
COPY ./app.py /code/app.py
|
| 21 |
|
| 22 |
# Make port 7860 available to the world outside this container
|