Jānis janhouse

dht-proxy (latest)

Published 2026-04-05 09:13:03 +00:00 by janhouse

Installation

docker pull git.janhouse.lv/janhouse/dht-proxy:latest
sha256:3db5c4406ec3adfc9829ebb092fff469d45afbafd845017b4f3f904b743056a0

About this package

Privacy-preserving BitTorrent peer relay — crawls DHT and trackers, relays peers to downstream clients without exposing their IPs

Image Layers

ADD alpine-minirootfs-3.22.3-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
ARG BUN_RUNTIME_TRANSPILER_CACHE_PATH=0
ENV BUN_RUNTIME_TRANSPILER_CACHE_PATH=0
ARG BUN_INSTALL_BIN=/usr/local/bin
ENV BUN_INSTALL_BIN=/usr/local/bin
COPY /usr/local/bin/bun /usr/local/bin/ # buildkit
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
RUN |2 BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 BUN_INSTALL_BIN=/usr/local/bin /bin/sh -c mkdir -p /usr/local/bun-node-fallback-bin && ln -s /usr/local/bin/bun /usr/local/bun-node-fallback-bin/node # buildkit
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bun-node-fallback-bin
RUN |2 BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 BUN_INSTALL_BIN=/usr/local/bin /bin/sh -c addgroup -g 1000 bun && adduser -u 1000 -G bun -s /bin/sh -D bun && ln -s /usr/local/bin/bun /usr/local/bin/bunx && apk add libgcc libstdc++ && which bun && which bunx && bun --version # buildkit
WORKDIR /home/bun/app
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["/usr/local/bin/bun"]
WORKDIR /app
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
RUN /bin/sh -c addgroup --system --gid 1001 nodejs # buildkit
RUN /bin/sh -c adduser --system --uid 1001 nextjs # buildkit
COPY /app/public ./public # buildkit
COPY --chown=nextjs:nodejs /app/.next/standalone ./ # buildkit
COPY --chown=nextjs:nodejs /app/.next/static ./.next/static # buildkit
COPY --chown=nextjs:nodejs /app/.next/BUILD_ID ./.next/BUILD_ID # buildkit
COPY /app/drizzle ./drizzle # buildkit
RUN /bin/sh -c mkdir -p /app/data && chown nextjs:nodejs /app/data # buildkit
LABEL org.opencontainers.image.title=DHT Proxy
LABEL org.opencontainers.image.description=Privacy-preserving BitTorrent peer relay — crawls DHT and trackers, relays peers to downstream clients without exposing their IPs
LABEL org.opencontainers.image.source=https://github.com/Janhouse/dht-proxy
LABEL org.opencontainers.image.vendor=Janhouse
USER nextjs
EXPOSE [3000/tcp]
ENV PORT=3000
ENV HOSTNAME=0.0.0.0
HEALTHCHECK &{["CMD-SHELL" "wget -q --spider http://127.0.0.1:3000/ || exit 1"] "3s" "5s" "2s" "0s" '\x03'}
ENTRYPOINT ["bun" "--bun" "server.js"]

Labels

Key Value
com.docker.compose.project docker
com.docker.compose.service app
com.docker.compose.version 5.1.1
org.opencontainers.image.created 2026-03-18T04:34:02.526Z
org.opencontainers.image.description Privacy-preserving BitTorrent peer relay — crawls DHT and trackers, relays peers to downstream clients without exposing their IPs
org.opencontainers.image.licenses NOASSERTION
org.opencontainers.image.revision a04817ce2b7f1a1e8b7cbf8af8f2c027ab072f1d
org.opencontainers.image.source https://github.com/Janhouse/dht-proxy
org.opencontainers.image.title DHT Proxy
org.opencontainers.image.url https://github.com/oven-sh/bun
org.opencontainers.image.vendor Janhouse
org.opencontainers.image.version 1.3.11-alpine
Details
Container
2026-04-05 09:13:03 +00:00
26
OCI / Docker
linux/amd64
NOASSERTION
62 MiB
Versions (1) View all
latest 2026-04-05