philipobiorah commited on
Commit
cc2fd00
·
verified ·
1 Parent(s): 2448ff2

update Dockerfile : Modify Dockerfile to Remove Hardcoded Token

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -15,11 +15,12 @@ RUN apt-get update && apt-get install -y \
15
  RUN pip install --upgrade pip
16
 
17
  # Set writable cache directories for Hugging Face and Matplotlib
18
- RUN mkdir -p /root/.cache/huggingface /root/.cache/matplotlib
19
 
20
- # Set environment variables for Hugging Face and Matplotlib
21
  ENV HF_HOME=/root/.cache/huggingface
22
- ENV MPLCONFIGDIR=/root/.cache/matplotlib
 
23
 
24
  # Add Hugging Face API token (replace YOUR_HF_TOKEN with your actual token)
25
  ENV HUGGINGFACE_TOKEN=${HUGGINGFACE_TOKEN}
 
15
  RUN pip install --upgrade pip
16
 
17
  # Set writable cache directories for Hugging Face and Matplotlib
18
+ RUN mkdir -p /root/.cache/huggingface /tmp/matplotlib
19
 
20
+ # Set environment variables
21
  ENV HF_HOME=/root/.cache/huggingface
22
+ ENV MPLCONFIGDIR=/tmp/matplotlib
23
+
24
 
25
  # Add Hugging Face API token (replace YOUR_HF_TOKEN with your actual token)
26
  ENV HUGGINGFACE_TOKEN=${HUGGINGFACE_TOKEN}