Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
@@ -22,10 +22,13 @@ RUN mkdir -p /app/hf_cache && chmod -R 777 /app/hf_cache
|
|
22 |
# Set Hugging Face cache directory
|
23 |
ENV HF_HOME=/app/hf_cache
|
24 |
|
25 |
-
# Clone Chain-of-Zoom repository
|
26 |
-
RUN git clone https://github.com/bryanswkim/Chain-of-Zoom.git
|
|
|
|
|
|
|
27 |
|
28 |
-
# Copy custom files
|
29 |
COPY requirements.txt .
|
30 |
COPY app.py .
|
31 |
|
|
|
22 |
# Set Hugging Face cache directory
|
23 |
ENV HF_HOME=/app/hf_cache
|
24 |
|
25 |
+
# Clone Chain-of-Zoom repository into a temporary directory
|
26 |
+
RUN git clone https://github.com/bryanswkim/Chain-of-Zoom.git /tmp/chain-of-zoom && \
|
27 |
+
mv /tmp/chain-of-zoom/* . && \
|
28 |
+
mv /tmp/chain-of-zoom/.* . 2>/dev/null || true && \
|
29 |
+
rm -rf /tmp/chain-of-zoom
|
30 |
|
31 |
+
# Copy custom files (overwrites any conflicting files from the repository)
|
32 |
COPY requirements.txt .
|
33 |
COPY app.py .
|
34 |
|