Commit
·
4cd67d1
1
Parent(s):
7396a26
Remove hf_cache creation from entrypoint - let Python handle it
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -29,9 +29,10 @@ RUN mkdir -p /data/uploads /data/results
|
|
| 29 |
|
| 30 |
# Handle Firebase credentials from environment variable (for Hugging Face Spaces secrets)
|
| 31 |
# This allows the credentials to be passed as a secret and written to file at runtime
|
|
|
|
| 32 |
RUN echo '#!/bin/sh' > /entrypoint.sh && \
|
| 33 |
echo 'set -e' >> /entrypoint.sh && \
|
| 34 |
-
echo 'mkdir -p /data/uploads /data/results
|
| 35 |
echo 'if [ -n "$FIREBASE_CREDENTIALS" ]; then' >> /entrypoint.sh && \
|
| 36 |
echo ' printf "%s" "$FIREBASE_CREDENTIALS" > /data/firebase-adminsdk.json' >> /entrypoint.sh && \
|
| 37 |
echo 'fi' >> /entrypoint.sh && \
|
|
|
|
| 29 |
|
| 30 |
# Handle Firebase credentials from environment variable (for Hugging Face Spaces secrets)
|
| 31 |
# This allows the credentials to be passed as a secret and written to file at runtime
|
| 32 |
+
# Note: Python code will create /data/hf_cache with proper permissions
|
| 33 |
RUN echo '#!/bin/sh' > /entrypoint.sh && \
|
| 34 |
echo 'set -e' >> /entrypoint.sh && \
|
| 35 |
+
echo 'mkdir -p /data/uploads /data/results' >> /entrypoint.sh && \
|
| 36 |
echo 'if [ -n "$FIREBASE_CREDENTIALS" ]; then' >> /entrypoint.sh && \
|
| 37 |
echo ' printf "%s" "$FIREBASE_CREDENTIALS" > /data/firebase-adminsdk.json' >> /entrypoint.sh && \
|
| 38 |
echo 'fi' >> /entrypoint.sh && \
|