Initial commit

This commit is contained in:
stackclass
2025-09-13 11:17:10 +00:00
commit 8c1bfc7921
17 changed files with 2181 additions and 0 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# syntax=docker/dockerfile:1.7-labs
FROM rust:1.87-slim-bookworm AS builder
WORKDIR /app
# .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
COPY --exclude=.git --exclude=README.md . /app
# This runs cargo build
RUN .stackclass/compile.sh
# Final minimal image
FROM debian:bookworm-slim
WORKDIR /app
COPY --from=builder --exclude=target /app ./
COPY --from=builder /app/target/release/stackclass-solana-voting-program ./target/release/
# Set default startup command
CMD ["./.stackclass/run.sh"]