Spaces:
Paused
Paused
Download Dockerfile from cloudunity/gmultiuserlumi: direct link, hf CLI and curl.
- Browser
- Download file 1.3 kB
-
https://huggingface.co/spaces/cloudunity/gmultiuserlumi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/cloudunity/gmultiuserlumi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/cloudunity/gmultiuserlumi/resolve/main/Dockerfile
1.3 kB
| FROM oven/bun:1-slim | |
| ARG DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git ca-certificates curl sqlite3 rsync python3 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| ARG LUMIVERSE_REPO=https://github.com/CloudCompile/Lumiverse.git | |
| ARG LUMIVERSE_REF=Leaderboard | |
| RUN git clone --depth 1 --branch "${LUMIVERSE_REF}" "${LUMIVERSE_REPO}" . | |
| RUN rm -f package-lock.json && bun install --production | |
| WORKDIR /app/frontend | |
| RUN rm -f package-lock.json && bun install && bun run build | |
| RUN printf "self.addEventListener('install',e=>e.skipWaiting());self.addEventListener('activate',e=>e.waitUntil(self.clients.claim()));\n" > /app/frontend/dist/sw.js | |
| RUN test -f /app/frontend/dist/index.html | |
| WORKDIR /app | |
| ENV NODE_ENV=production | |
| ENV PORT=7860 | |
| ENV DATA_DIR=/app/data | |
| ENV FRONTEND_DIR=/app/frontend/dist | |
| ENV TRUST_ANY_ORIGIN=true | |
| ENV AUTH_PUBLIC_SIGNUP=true | |
| ENV OWNER_PASSWORD=changeme123 | |
| RUN cat > /app/start.sh <<'SH' | |
| #!/usr/bin/env sh | |
| set -eu | |
| export DATA_DIR="${DATA_DIR:-/app/data}" | |
| # Run with the runner script so IPC is available for the operator page | |
| exec bun run scripts/runner.ts | |
| SH | |
| RUN chmod +x /app/start.sh | |
| USER root | |
| RUN mkdir -p /app/data && chown -R bun:bun /app/data | |
| EXPOSE 7860 | |
| VOLUME /app/data | |
| USER bun | |
| CMD ["/app/start.sh"] |