File size: 771 Bytes
46dc631
 
 
fb392fa
 
46dc631
fb392fa
 
0c4c329
86ff4d8
46dc631
 
 
fb392fa
 
 
4a33de6
fb392fa
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Hugging Face Docker Space for bitsettled.
# Pulls the public GitHub snapshot as a tarball (git clone is unreliable in
# some Space builders). CACHE_BUST forces a fresh snapshot on each deploy.
FROM node:22-alpine

RUN apk add --no-cache ca-certificates wget
WORKDIR /app

ARG CACHE_BUST=20261112174851
RUN echo "cache bust: $CACHE_BUST"
RUN wget -qO /tmp/bitsettled.tar.gz "https://codeload.github.com/cptlight/bit-settled/tar.gz/refs/heads/main" \
 && tar -xzf /tmp/bitsettled.tar.gz -C /app --strip-components=1 \
 && rm -f /tmp/bitsettled.tar.gz

ENV NODE_ENV=production \
    HOST=0.0.0.0 \
    PORT=7860

EXPOSE 7860
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s \
  CMD wget -qO- http://127.0.0.1:7860/api/health || exit 1

CMD ["node", "server.js"]