Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -8
Dockerfile
CHANGED
|
@@ -12,19 +12,13 @@ RUN apt-get update && apt-get install -y \
|
|
| 12 |
# Copy requirements first (for better Docker layer caching)
|
| 13 |
COPY requirements.txt .
|
| 14 |
|
| 15 |
-
# Install
|
| 16 |
-
RUN pip install --no-cache-dir
|
| 17 |
-
|
| 18 |
-
RUN pip install pip-tools
|
| 19 |
-
RUN pip-compile requirements.txt
|
| 20 |
-
RUN pip install -r requirements.txt
|
| 21 |
|
| 22 |
# Clone and install MobileCLIP
|
| 23 |
RUN git clone https://github.com/apple/ml-mobileclip.git && \
|
| 24 |
cd ml-mobileclip && \
|
| 25 |
-
pip install -e . && \
|
| 26 |
cd .. && \
|
| 27 |
-
rm -rf ml-mobileclip/.git
|
| 28 |
|
| 29 |
# Copy application code
|
| 30 |
COPY app.py .
|
|
|
|
| 12 |
# Copy requirements first (for better Docker layer caching)
|
| 13 |
COPY requirements.txt .
|
| 14 |
|
| 15 |
+
# Install other Python dependencies
|
| 16 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
# Clone and install MobileCLIP
|
| 19 |
RUN git clone https://github.com/apple/ml-mobileclip.git && \
|
| 20 |
cd ml-mobileclip && \
|
|
|
|
| 21 |
cd .. && \
|
|
|
|
| 22 |
|
| 23 |
# Copy application code
|
| 24 |
COPY app.py .
|