| # debian.sh --arch 'amd64' out/ 'bookworm' '@1776729600' |
| ARG CLAUDE_CODE_VERSION=latest |
| ENV DEBIAN_FRONTEND=noninteractive |
| RUN |1 CLAUDE_CODE_VERSION=latest /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates tini curl git openssh-client netcat-openbsd && rm -rf /var/lib/apt/lists/* # buildkit |
| COPY /usr/local/bin/claude-entry /usr/local/bin/claude # buildkit |
| RUN |1 CLAUDE_CODE_VERSION=latest /bin/sh -c groupadd -g 10001 apoh && useradd -m -u 10001 -g apoh -s /bin/bash apoh && mkdir -p /home/apoh/.claude /home/apoh/.ssh /var/lib/apoh/wiki /tmp/apoh && chown -R apoh:apoh /home/apoh /var/lib/apoh /tmp/apoh # buildkit |
| COPY /out/apoh /usr/local/bin/apoh # buildkit |
| COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh # buildkit |
| COPY docker/claude-settings.json /home/apoh/.claude/settings.json # buildkit |
| COPY docker/claude-settings.json /usr/local/share/apoh/claude-settings.json # buildkit |
| RUN |1 CLAUDE_CODE_VERSION=latest /bin/sh -c chmod +x /usr/local/bin/apoh /usr/local/bin/entrypoint.sh && chown apoh:apoh /home/apoh/.claude/settings.json # buildkit |
| USER apoh |
| ENV HOME=/home/apoh CLAUDE_CONFIG_DIR=/home/apoh/.claude APOH_WIKI_GIT_WORKTREE=/var/lib/apoh/wiki APOH_HOST=0.0.0.0 APOH_PORT=8080 PATH=/usr/local/bin:/usr/bin:/bin |
| EXPOSE map[8080/tcp:{}] |
| HEALTHCHECK &{["CMD-SHELL" "curl -fsS http://127.0.0.1:8080/healthz || exit 1"] "30s" "5s" "5s" "0s" '\x03'} |
| ENTRYPOINT ["/usr/bin/tini" "--" "/usr/local/bin/entrypoint.sh"] |