Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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 |
-
|
46 |
-
|
47 |
-
|
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
|