Download deploy/Containerfile from abr00kx/taper: direct link, hf CLI and curl.
- Browser
- Download file 2.24 kB
-
https://huggingface.co/abr00kx/taper/resolve/main/deploy/Containerfile
- Command line
-
hf download hf://abr00kx/taper/deploy/Containerfile
-
curl -L -o Containerfile https://huggingface.co/abr00kx/taper/resolve/main/deploy/Containerfile
2.24 kB
| # Taper server, with the web client it hosts. Build from the repository root: | |
| # | |
| # podman build -f deploy/Containerfile -t taper . | |
| # | |
| # See deploy/README.md for running it. Works with Docker too. | |
| # Node 24.22.1 (published 2026-10-28), pinned by digest. | |
| FROM docker.io/library/node:24.22.1-bookworm-slim@sha256:be8204d4bd327363357f532187b752ff62759c31bedf98e9e18fc08c9cbd605c | |
| ENV NODE_ENV=production | |
| WORKDIR /opt/taper | |
| # Runtime dependencies only, exactly as locked, with no install scripts. | |
| COPY server/package.json server/package-lock.json server/ | |
| COPY client/package.json client/package-lock.json client/ | |
| RUN cd server && npm ci --omit=dev --ignore-scripts --no-audit --no-fund \ | |
| && cd ../client && npm ci --omit=dev --ignore-scripts --no-audit --no-fund \ | |
| && npm cache clean --force | |
| # Only what runs: no tests, no tooling. | |
| COPY server/index.js server/config.js server/util.js server/sessions.js server/rooms.js server/keys.js server/media.js server/quota.js server/auth.js server/account.js server/federation.js server/gateway.js server/operator.js server/events.js server/fed.js server/store.js server/state-res.js server/padding.js server/socks.js server/webauthn.js server/admin.js server/dms.js server/dms-order.js server/ | |
| COPY client/index.html client/style.css client/wasm-check.js client/app.js client/crypto.js client/media.js client/pow.js client/opaque.js client/account.js client/device.js client/webauthn.js client/ | |
| # Data and keys live on two separate volumes: they must never be backed up | |
| # together (see deploy/README.md). | |
| RUN mkdir -p /var/lib/taper/data /var/lib/taper/keys \ | |
| && chown -R node:node /var/lib/taper \ | |
| && chmod 0700 /var/lib/taper/data /var/lib/taper/keys | |
| VOLUME ["/var/lib/taper/data", "/var/lib/taper/keys"] | |
| # NOTE: HOST=0.0.0.0 requires TAPER_TLS_CERT, TAPER_TLS_KEY, and a random | |
| # TAPER_GATEWAY_PATH (at least 22 base64url chars) at runtime; the server | |
| # refuses to serve plaintext on a non-loopback address. For loopback-only | |
| # local testing behind a reverse proxy or Tor onion service, set HOST=127.0.0.1. | |
| ENV HOST=0.0.0.0 \ | |
| PORT=8443 \ | |
| TAPER_DATA_DIR=/var/lib/taper/data \ | |
| TAPER_KEY_DIR=/var/lib/taper/keys | |
| USER node | |
| EXPOSE 8443 | |
| STOPSIGNAL SIGTERM | |
| CMD ["node", "server/index.js"] | |