update Dockerfile : Modify Dockerfile to Remove Hardcoded Token
Browse files- 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 /
|
| 19 |
|
| 20 |
-
# Set environment variables
|
| 21 |
ENV HF_HOME=/root/.cache/huggingface
|
| 22 |
-
ENV MPLCONFIGDIR=/
|
|
|
|
| 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}
|