cptlight commited on
Commit
46dc631
·
1 Parent(s): 560496f

Deploy bit-settled SIM demo

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -7
Dockerfile CHANGED
@@ -1,15 +1,16 @@
1
- # Hugging Face Docker Space for bit-settled.
2
- # Builds directly from the public GitHub repo so this Space stays in sync.
3
- # cache-bust: 2026-11-06 live-sandbox
4
  FROM node:22-alpine
5
 
6
- RUN apk add --no-cache git ca-certificates
7
  WORKDIR /app
8
 
9
- ARG CACHE_BUST=20261111193037
10
  RUN echo "cache bust: $CACHE_BUST"
11
-
12
- RUN git clone --depth 1 https://github.com/cptlight/bit-settled.git .
 
13
 
14
  ENV NODE_ENV=production \
15
  HOST=0.0.0.0 \
 
1
+ # Hugging Face Docker Space for bitsettled.
2
+ # Pulls the public GitHub snapshot as a tarball (git clone is unreliable in
3
+ # some Space builders). CACHE_BUST forces a fresh snapshot on each deploy.
4
  FROM node:22-alpine
5
 
6
+ RUN apk add --no-cache ca-certificates wget
7
  WORKDIR /app
8
 
9
+ ARG CACHE_BUST=20261111193318
10
  RUN echo "cache bust: $CACHE_BUST"
11
+ RUN wget -qO /tmp/bitsettled.tar.gz "https://codeload.github.com/cptlight/bit-settled/tar.gz/refs/heads/main" \
12
+ && tar -xzf /tmp/bitsettled.tar.gz -C /app --strip-components=1 \
13
+ && rm -f /tmp/bitsettled.tar.gz
14
 
15
  ENV NODE_ENV=production \
16
  HOST=0.0.0.0 \