Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
|
@@ -8,13 +8,12 @@ WORKDIR /app
|
|
| 8 |
COPY requirements.txt .
|
| 9 |
|
| 10 |
# Update apt-get with retries and install system dependencies
|
| 11 |
-
RUN apt-get update --fix-missing && apt-get install -y
|
|
|
|
| 12 |
gcc \
|
| 13 |
build-essential \
|
| 14 |
libpython3.11-dev \
|
| 15 |
&& rm -rf /var/lib/apt/lists/*
|
| 16 |
-
|
| 17 |
-
RUN apt-get install git
|
| 18 |
|
| 19 |
# Update pip and install pip-tools
|
| 20 |
RUN pip install --no-cache-dir --upgrade pip \
|
|
@@ -23,7 +22,7 @@ RUN pip install --no-cache-dir --upgrade pip \
|
|
| 23 |
# Sync dependencies with pip-sync
|
| 24 |
RUN pip-sync requirements.txt
|
| 25 |
|
| 26 |
-
# Install Gradio
|
| 27 |
RUN pip install --no-cache-dir gradio
|
| 28 |
RUN pip install git+https://github.com/cloneofsimo/lora.git
|
| 29 |
RUN pip install git+https://github.com/microsoft/LoRA
|
|
|
|
| 8 |
COPY requirements.txt .
|
| 9 |
|
| 10 |
# Update apt-get with retries and install system dependencies
|
| 11 |
+
RUN apt-get update --fix-missing && apt-get install -y --no-install-recommends \
|
| 12 |
+
git \
|
| 13 |
gcc \
|
| 14 |
build-essential \
|
| 15 |
libpython3.11-dev \
|
| 16 |
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
| 17 |
|
| 18 |
# Update pip and install pip-tools
|
| 19 |
RUN pip install --no-cache-dir --upgrade pip \
|
|
|
|
| 22 |
# Sync dependencies with pip-sync
|
| 23 |
RUN pip-sync requirements.txt
|
| 24 |
|
| 25 |
+
# Install Gradio and LoRA packages
|
| 26 |
RUN pip install --no-cache-dir gradio
|
| 27 |
RUN pip install git+https://github.com/cloneofsimo/lora.git
|
| 28 |
RUN pip install git+https://github.com/microsoft/LoRA
|