Skip to content

Commit 98790fb

Browse files
committed
fix: require CSS before local docker build
task docker:build now depends on css so output.css is always generated before docker build is called. Documents the same requirement in the README for users running docker build directly.
1 parent fe9c8ed commit 98790fb

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Remote reboot and power-off via the REST API — no SSH needed for day-to-day op
103103
| armv7hf | deb, rpm | Raspberry Pi 2/3 (32-bit) |
104104
| **armhf (ARMv6)** | deb, rpm | **Raspberry Pi B / B+ / Zero** |
105105

106-
Pre-built packages and a multi-arch Docker image (amd64, arm64, arm/v6, arm/v7) are available on every build.
106+
Pre-built packages (amd64, arm64, armv7hf, armhf/ARMv6) and a multi-arch Docker image (amd64, arm64, arm/v7) are available on every build. Docker does not target arm/v6 — Pi B/Zero users should use the armhf package.
107107

108108
## Roadmap
109109

@@ -222,7 +222,9 @@ Volumes mounted (all read-only):
222222

223223
To build locally instead:
224224
```bash
225+
task css # generate ui/static/output.css (required by go:embed)
225226
docker build -t odio-api .
227+
# or simply: task docker:build
226228
```
227229

228230
#### Command-line Flags

Taskfile.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ tasks:
334334

335335
docker:build:
336336
desc: Build Docker image for local architecture
337+
deps: [css]
337338
cmds:
338339
- docker build --build-arg VERSION={{.VERSION}} -t odio-api:{{.VERSION}} .
339340
- echo "✓ Image odio-api:{{.VERSION}} built"

0 commit comments

Comments
 (0)