Dockerfile: build current upstream (Go 1.27, Rust for wasm) #1

Merged
sesh merged 1 commits from entee/anubis-rebranding:fix-go-1.27-rust into main 2026-11-04 22:14:54 +01:00
Collaborator

The nightly anubis-reskin run has failed every day since July:

go: go.mod requires go >= 1.27.3 (running go 1.24.13; GOTOOLCHAIN=local)
npm error command sh -c husky && go mod download && cargo fetch

Upstream Anubis (v1.28.x) needs Go 1.27.3 and now builds its proof-of-work wasm modules with Rust, so npm ci's prepare step and npm run build (assets:wasm) need cargo with the wasm32-unknown-unknown target.

Change (Dockerfile only):

  • golang:1.27-bookworm instead of golang:1.24-bookworm
  • ENV GOTOOLCHAIN=auto, so the next go.mod bump downloads a newer toolchain instead of failing
  • Rust via rustup (minimal profile) with the wasm32-unknown-unknown target

Tested: built against v1.28.2 exactly like the workflow does (upstream clone + mascot/*.webp overlay, docker build -f Dockerfile upstream). The image runs (Anubis v1.28.2) and serves the reskinned happy.webp (same hash as mascot/happy.webp).

Alternative without any build: serve the three mascot images from the reverse proxy in front of the official image (path /.within.website/x/cmd/anubis/static/img/{happy,pensive,reject}.webp). That's what miasma-trap does with Caddy.

🤖 Generated with Claude Code

The nightly `anubis-reskin` run has failed every day since July: ``` go: go.mod requires go >= 1.27.3 (running go 1.24.13; GOTOOLCHAIN=local) npm error command sh -c husky && go mod download && cargo fetch ``` Upstream Anubis (v1.28.x) needs Go 1.27.3 and now builds its proof-of-work wasm modules with Rust, so `npm ci`'s `prepare` step and `npm run build` (`assets:wasm`) need `cargo` with the `wasm32-unknown-unknown` target. **Change (Dockerfile only):** - `golang:1.27-bookworm` instead of `golang:1.24-bookworm` - `ENV GOTOOLCHAIN=auto`, so the next `go.mod` bump downloads a newer toolchain instead of failing - Rust via rustup (minimal profile) with the `wasm32-unknown-unknown` target **Tested:** built against `v1.28.2` exactly like the workflow does (upstream clone + `mascot/*.webp` overlay, `docker build -f Dockerfile upstream`). The image runs (`Anubis v1.28.2`) and serves the reskinned `happy.webp` (same hash as `mascot/happy.webp`). Alternative without any build: serve the three mascot images from the reverse proxy in front of the official image (path `/.within.website/x/cmd/anubis/static/img/{happy,pensive,reject}.webp`). That's what miasma-trap does with Caddy. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
entee added 1 commit 2026-10-31 13:44:59 +01:00
The nightly reskin has failed since upstream Anubis required Go 1.27.3
(go.mod) and started building its proof-of-work wasm modules with Rust:
npm ci's prepare step runs `go mod download && cargo fetch`.

- golang:1.27-bookworm, plus GOTOOLCHAIN=auto so the next go.mod bump
  fetches a newer toolchain instead of failing
- Rust (rustup, minimal profile) with the wasm32-unknown-unknown target

Test-built against v1.28.2 with the mascot overlay: the image runs and
serves the reskinned happy.webp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sesh merged commit 321b8863ec into main 2026-11-04 22:14:54 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sesh/anubis-rebranding#1