Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: building via docker #23

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]