| # debian.sh --arch 'amd64' out/ 'bookworm' '@1775433600' |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl git openssh-client && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c groupadd -g 10001 apon && useradd -u 10001 -g apon -m -s /bin/sh apon && mkdir -p /var/lib/apon/wiki && chown -R apon:apon /var/lib/apon # buildkit |
| COPY /apon /usr/local/bin/apon # buildkit |
| USER apon |
| WORKDIR /var/lib/apon |
| ENV APON_HOST=0.0.0.0 APON_PORT=8484 APON_LOG_LEVEL=info APON_LOG_JSON=true APON_WIKI_GIT_BRANCH=main APON_WIKI_WORKTREE=/var/lib/apon/wiki APON_WIKI_POLL_SECONDS=60 |
| EXPOSE [8484/tcp] |
| HEALTHCHECK &{["CMD-SHELL" "curl -sf http://127.0.0.1:8484/healthz || exit 1"] "10s" "3s" "0s" "0s" '\x03'} |
| ENTRYPOINT ["apon"] |