thanhkt commited on
Commit
4a561ea
·
verified ·
1 Parent(s): 6d08267

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -53,11 +53,11 @@ ENV PATH="/root/.TinyTeX/bin/x86_64-linux:$PATH"
53
 
54
  # Copy requirements and install Python dependencies
55
  COPY requirements.txt .
56
- RUN pip install --no-cache-dir --prefix=/install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu \
57
- && pip install --no-cache-dir --prefix=/install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu \
58
  && python -c "import gradio; print(f'Gradio version: {gradio.__version__}')" \
59
- && find /install -name "*.pyc" -delete \
60
- && find /install -name "__pycache__" -type d -exec rm -rf {} + 2>/dev/null || true
61
 
62
  # Ensure Hugging Face cache directories are writable
63
  RUN mkdir -p /tmp/huggingface /tmp/transformers && chmod -R a+w /tmp/huggingface /tmp/transformers
 
53
 
54
  # Copy requirements and install Python dependencies
55
  COPY requirements.txt .
56
+ RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu \
57
+ && pip install --no-cache-dir -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu \
58
  && python -c "import gradio; print(f'Gradio version: {gradio.__version__}')" \
59
+ && find /usr/local -name "*.pyc" -delete \
60
+ && find /usr/local -name "__pycache__" -type d -exec rm -rf {} + 2>/dev/null || true
61
 
62
  # Ensure Hugging Face cache directories are writable
63
  RUN mkdir -p /tmp/huggingface /tmp/transformers && chmod -R a+w /tmp/huggingface /tmp/transformers