File size: 1,167 Bytes
3e21dc5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@@
FROM pytorch/pytorch:2.6.0-cuda12.6-cudnn9-devel

#–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
# 1.  Hugging Face cache lives in /data (.hf Space volume)       *
#–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
ENV HF_HOME=/data/.huggingface

@@
 WORKDIR /workspace/spatial-dia
 ENV PYTHONUNBUFFERED=1

CMD ["/bin/bash"]

#–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
# 2.  Boot script: pre-fetch weights once, then launch Gradio
#–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

CMD ["/entrypoint.sh"]