Commit ea693fa
docs: update Docker usage to binary extraction pattern
Update README to follow gomplate pattern where Docker image is used
to extract the binary rather than running templates inside containers.
## Changes
### Quick Start Section
- Remove docker run examples with volume mounts
- Add Dockerfile multi-stage build example
- Show COPY --from pattern for binary extraction
- Clearer for CI/CD use cases
### Docker Installation Section
- Document multi-stage build pattern
- Add Dockerfile example with tmpltool usage
- List available tags and multi-arch support
- Add local binary extraction instructions
### Features Section
- Change "Docker Support" to "Docker-Friendly"
- Emphasize binary extraction pattern
- Highlight static binary availability
## Benefits
This pattern is better for:
- CI/CD pipelines (no volume mounts needed)
- Reproducible builds (binary in image)
- Smaller final images (just the binary)
- Standard practice (similar to gomplate, dockerize, etc.)
## Example Usage
```dockerfile
FROM ghcr.io/bordeux/tmpltool:latest AS tmpltool
FROM alpine:latest
COPY --from=tmpltool /tmpltool /usr/local/bin/tmpltool
RUN tmpltool config.tmpl -o config.json
```
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 11a7416 commit ea693fa
1 file changed
Lines changed: 38 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 55 | + | |
| 56 | + | |
65 | 57 | | |
66 | 58 | | |
67 | 59 | | |
68 | 60 | | |
| 61 | + | |
69 | 62 | | |
70 | 63 | | |
71 | 64 | | |
| |||
83 | 76 | | |
84 | 77 | | |
85 | 78 | | |
86 | | - | |
87 | | - | |
| 79 | + | |
| 80 | + | |
88 | 81 | | |
89 | 82 | | |
90 | 83 | | |
| |||
107 | 100 | | |
108 | 101 | | |
109 | 102 | | |
110 | | - | |
| 103 | + | |
111 | 104 | | |
112 | | - | |
113 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
117 | 123 | | |
| 124 | + | |
118 | 125 | | |
119 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
120 | 132 | | |
121 | 133 | | |
122 | 134 | | |
| |||
0 commit comments