Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Feb 4, 2025
0 parents commit a7c855f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Build application
#
# Copy in all crates, Cargo.toml and Cargo.lock unmodified,
# and build the application.
FROM rust:1.81-bullseye AS builder
RUN apt-get update && apt-get install -y cmake clang

ARG VERSION=main
RUN git clone --depth=1 --branch ${VERSION} https://github.com/MystenLabs/sui
WORKDIR "$WORKDIR/sui"

ARG PROFILE=release
RUN cargo build --profile ${PROFILE} --bin sui

# Production Image
FROM debian:bullseye-slim AS runtime
RUN apt-get update && apt-get install -y ca-certificates curl
WORKDIR "$WORKDIR/sui"
COPY --from=builder /sui/target/release/sui /usr/local/bin

0 comments on commit a7c855f

Please sign in to comment.