Files
Hapi-Docker/self/Dockerfile
T
iandHAPI 002e0b5e46 feat: add self-built Docker image from local hapi source
Add a new Docker image variant (tag: self) that uses compiled binaries
from the hapi self branch instead of installing from npm.

- self/Dockerfile: runtime image copying pre-built binary by arch
- self/build.sh: local build script from ../hapi/dist-exe
- .github/workflows/docker-build-self.yml: CI workflow to build and
  push multi-arch image to GHCR with tag "self"

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <[email protected]>
2026-05-21 22:28:25 +08:00

20 lines
372 B
Docker

FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
ARG TARGETARCH
COPY hapi-${TARGETARCH} /usr/local/bin/hapi
RUN chmod +x /usr/local/bin/hapi
RUN mkdir -p /root/.hapi
EXPOSE 3006
ENV HAPI_LISTEN_HOST=0.0.0.0
ENV HAPI_LISTEN_PORT=3006
ENTRYPOINT ["hapi"]
CMD ["hub"]