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
+6 -2
View File
@@ -13,7 +13,8 @@ RUN make
FROM golang:1.26-alpine AS fetch-builder
WORKDIR /src
COPY go.mod main.go /src/
COPY go.mod main.go serve.go /src/
COPY web/ /src/web/
RUN CGO_ENABLED=0 go build -o /fetch .
# Stage 3: Runtime image
@@ -24,10 +25,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /data/output/isos /data/output/wavs
COPY --from=akaiutil-builder /src/akaiutil/akaiutil /usr/local/bin/
COPY --from=fetch-builder /fetch /usr/local/bin/fetch
COPY scripts/extract_wavs.sh /usr/local/bin/
WORKDIR /data
EXPOSE 8080
ENTRYPOINT ["fetch"]
CMD ["--help"]
CMD ["serve", "-p", "8080"]