Skip to content

Commit

Permalink
WIP: building via docker
Browse files Browse the repository at this point in the history
  • Loading branch information
tadad committed Mar 7, 2025
1 parent 6a25e18 commit 6163a38
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Rust build artifacts
target/
**/*.rs.bk

# Git directory
.git/

# IDE directories
.idea/
.vscode/

# Dependencies
node_modules/

# Debug files
**/*.pdb

# Temporary files
**/*.tmp
**/*.temp
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM --platform=linux/amd64 rust:1.82.0-bullseye

# Install build dependencies
RUN apt-get update && apt-get install -y \
build-essential \
pkg-config \
libclang-dev \
clang \
curl \
&& rm -rf /var/lib/apt/lists/*

# Create and set working directory
WORKDIR /kailua

# Copy all files (except those in .gitignore)
COPY . .

# Install RISC0 toolchain
RUN curl -L https://risczero.com/install | bash && \
. $HOME/.bashrc && \
export PATH="$HOME/.rzup/bin:$PATH" && \
rzup install

# Build the CLI
RUN cargo install kailua-cli --path bin/cli --locked --debug

# Set the entrypoint to the CLI
ENTRYPOINT ["kailua-cli"]

0 comments on commit 6163a38

Please sign in to comment.