@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
text 10 lines 413 Bytes
Raw
1 FROM alpine:3.21
2
3 ARG GREETING
4 # Record what the build saw: the build arg verbatim, and the secret's length
5 # rather than its value, so the file proves the mount without leaking it.
6 RUN --mount=type=secret,id=token,required=true \
7 echo "$GREETING $(wc -c < /run/secrets/token)" > /build.txt
8
9 # Exit 0 only when the build saw both.
10 CMD ["sh", "-c", "cat /build.txt && test \"$(cat /build.txt)\" = \"hello 26\""]