Spaces:
Running
Running
cptlight commited on
Commit ·
46dc631
1
Parent(s): 560496f
Deploy bit-settled SIM demo
Browse files- Dockerfile +8 -7
Dockerfile
CHANGED
|
@@ -1,15 +1,16 @@
|
|
| 1 |
-
# Hugging Face Docker Space for
|
| 2 |
-
#
|
| 3 |
-
#
|
| 4 |
FROM node:22-alpine
|
| 5 |
|
| 6 |
-
RUN apk add --no-cache
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
-
ARG CACHE_BUST=
|
| 10 |
RUN echo "cache bust: $CACHE_BUST"
|
| 11 |
-
|
| 12 |
-
|
|
|
|
| 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 \
|