forked from sesh/anubis-rebranding
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
851890990d |
+6
-1
@@ -1,10 +1,15 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
# ---- build: compile anubis with your overlaid mascot baked in ----
|
# ---- build: compile anubis with your overlaid mascot baked in ----
|
||||||
FROM golang:1.24-bookworm AS build
|
# Go version must satisfy upstream's go.mod; GOTOOLCHAIN=auto fetches a newer one when upstream bumps it
|
||||||
|
FROM golang:1.27-bookworm AS build
|
||||||
|
ENV GOTOOLCHAIN=auto
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
||||||
&& apt-get install -y --no-install-recommends nodejs zstd brotli \
|
&& apt-get install -y --no-install-recommends nodejs zstd brotli \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
# Rust + wasm target: upstream builds its proof-of-work wasm modules (npm prepare runs cargo fetch)
|
||||||
|
ENV RUSTUP_HOME=/usr/local/rustup CARGO_HOME=/usr/local/cargo PATH=/usr/local/cargo/bin:$PATH
|
||||||
|
RUN curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal --target wasm32-unknown-unknown
|
||||||
ENV HUSKY=0
|
ENV HUSKY=0
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
# context = upstream checkout, with mascot/*.webp already copied in
|
# context = upstream checkout, with mascot/*.webp already copied in
|
||||||
|
|||||||
Reference in new issue
Block a user