-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |