enskaff commited on
Commit
799283a
·
verified ·
1 Parent(s): fcb9e0d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -9,6 +9,14 @@ ENV DEBIAN_FRONTEND=noninteractive \
9
  PYTHONIOENCODING=utf-8 \
10
  PYTHONUNBUFFERED=1
11
 
 
 
 
 
 
 
 
 
12
  # Install system dependencies
13
  RUN apt-get update && apt-get install -y --no-install-recommends \
14
  git git-lfs python3 python3-pip curl ca-certificates build-essential && \
 
9
  PYTHONIOENCODING=utf-8 \
10
  PYTHONUNBUFFERED=1
11
 
12
+ # This diagnostic line checks if HF_TOKEN is set
13
+ RUN if [ -z "$HF_TOKEN" ]; then \
14
+ echo "ERROR: HF_TOKEN is not set!" && exit 1; \
15
+ else \
16
+ echo "HF_TOKEN is set (but not displaying the value for security)." ; \
17
+ fi
18
+
19
+
20
  # Install system dependencies
21
  RUN apt-get update && apt-get install -y --no-install-recommends \
22
  git git-lfs python3 python3-pip curl ca-certificates build-essential && \