chore: docker compose, mise.toml, updated toolchain

- Dockerfile: updated to serve mode with web/ embed, expose 8080
- docker-compose.yml: new, maps :8080 and output volume
- Makefile: added serve, akaiutil, electron-* targets
- mise.toml: new, go 1.26 + node 22, all build/run tasks
- .gitignore: exclude built akaiutil binary
This commit is contained in:
2026-06-21 19:46:34 -07:00
parent e2dbb66525
commit 9657aaa523
5 changed files with 75 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
[tools]
go = "1.26"
node = "22"
[env]
CGO_ENABLED = "0"
[tasks]
build = "go build -buildvcs=false -o fetch ."
akaiutil = "make -C third_party/akaiutil"
all = { run = "go build -buildvcs=false -o fetch . && make -C third_party/akaiutil" }
serve = { run = "go build -buildvcs=false -o fetch . && ./fetch serve" }
lint = "go vet ./..."
electron-deps = "cd electron && npm install"
electron-dev = { run = "go build -buildvcs=false -o fetch . && cd electron && npx electron ." }
electron-build = { run = "go build -buildvcs=false -o fetch . && make -C third_party/akaiutil && cd electron && npx electron-builder --dir" }
electron-build-mac = { run = "go build -buildvcs=false -o fetch . && make -C third_party/akaiutil && cd electron && npx electron-builder --mac --dir" }
docker-up = "docker compose up --build"
docker-build = "docker build -t akai-fetch ."