Replace 4 separate workflows (docker-build-self, docker-build-origin, release-self-binaries, release-origin-binaries) with one build-and-release.yml that accepts repository, ref, docker_tag, and release_tag as inputs. - origin/Dockerfile: now copies pre-built binary like self/Dockerfile - origin/build.sh: clones tiann/hapi@main and builds before docker build via HAPI Co-Authored-By: HAPI <[email protected]>
20 lines
372 B
Docker
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"]
|