File size: 578 Bytes
aa14dfa
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
# SnapOtter — official upstream image, embedded mode (no external Postgres/Redis).
# Embedded mode puts Postgres 17 + Redis 8 inside the container under /data, which is
# what a Space needs: there is no sidecar support and no persistent volume here.
FROM snapotter/snapotter:latest

# Hugging Face proxies exactly one port (README app_port). SnapOtter's upstream default
# is 1349; pin both sides to the platform's convention so a missed PORT injection cannot
# leave the app listening somewhere the proxy never looks.
ENV PORT=7860 \
    SNAPOTTER_ANALYTICS=off

EXPOSE 7860