Skip to content

Instantly share code, notes, and snippets.

@fowlmouth
Created September 3, 2023 20:44
Show Gist options
  • Save fowlmouth/0c26f83b10085ea49ae2b5fda80042ba to your computer and use it in GitHub Desktop.
Save fowlmouth/0c26f83b10085ea49ae2b5fda80042ba to your computer and use it in GitHub Desktop.
Spacetime DB rust module builder image
FROM docker.io/library/rust:1-bookworm
RUN rustup default stable
RUN rustup component add clippy
RUN rustup target add wasm32-unknown-unknown
ARG SPACETIME_VERSION=0.6.1-beta
RUN arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \
&& curl https://github.com/clockworklabs/SpacetimeDB/releases/download/v$SPACETIME_VERSION/spacetime.linux-$arch.tar.gz -o spacetime.tgz --fail --location \
&& tar xvzf spacetime.tgz \
&& rm spacetime.tgz
ENTRYPOINT ["/spacetime"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment