mikeion commited on
Commit
fbb188b
·
verified ·
1 Parent(s): 542d2f4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -7
Dockerfile CHANGED
@@ -42,13 +42,10 @@ COPY --chown=user docker_start.sh ./
42
  RUN mkdir -p ./data
43
  RUN chown -R user ./data
44
 
45
- echo "Checking if HUGGINGFACE_TOKEN is set..."
46
- if [ -z "${HUGGINGFACE_TOKEN}" ]; then
47
- echo "HUGGINGFACE_TOKEN is not set."
48
- else
49
- echo "HUGGINGFACE_TOKEN is set."
50
- fi
51
- # Do not print the actual HUGGINGFACE_TOKEN!
52
 
53
 
54
  EXPOSE 5432
 
42
  RUN mkdir -p ./data
43
  RUN chown -R user ./data
44
 
45
+ # Add a debugging statement to check if the HUGGINGFACE_TOKEN is set (during the build process, which is not the usual place for checking this)
46
+ # This is for demonstration purposes only; do not print the actual HUGGINGFACE_TOKEN value.
47
+ RUN echo "Checking if HUGGINGFACE_TOKEN is set during the build..." && \
48
+ if [ -z "${HUGGINGFACE_TOKEN}" ]; then echo "HUGGINGFACE_TOKEN is not set during the build."; else echo "HUGGINGFACE_TOKEN is set during the build."; fi
 
 
 
49
 
50
 
51
  EXPOSE 5432