mirror of
https://github.com/moghtech/komodo.git
synced 2026-09-07 08:00:54 +00:00
* 2.4.0-dev-0 * deploy 2.4.0-dev-1 * slightly optimize stack read path * Add IMAGE_NAME and IMAGE_TAG default build args in addition to VERSION * deploy 2.4.0-dev-2 * ui use || location.origin for base url * move to build time versioning * simplify run action with komodo managed version * procedure batch executions use tag filters * set advanced code splitting options * improve network module logic / edge cases * fix startup ordering - apply legacy db fixes before other tasks * lengthen periphery command timeouts * update deps * clients still have explicit versions * Add page breadcrumbs * mogh ui 1.2.6 * fix set version – set only specific path * cargo fmt * use mogh ui ListPagination * bump deps, rust 1.98.0 * missing dockerfile rust 1.98.0 bump
38 lines
1.1 KiB
Docker
38 lines
1.1 KiB
Docker
## Builds the Komodo Core, Periphery, and Util binaries
|
|
## for a specific architecture. Requires OpenSSL 3 or later.
|
|
|
|
FROM rust:1.98.0-bookworm AS builder
|
|
RUN cargo install cargo-strip cargo-edit
|
|
|
|
WORKDIR /builder
|
|
COPY Cargo.toml Cargo.lock ./
|
|
COPY ./lib ./lib
|
|
COPY ./client/core/rs ./client/core/rs
|
|
COPY ./client/periphery ./client/periphery
|
|
COPY ./bin/core ./bin/core
|
|
COPY ./bin/periphery ./bin/periphery
|
|
COPY ./bin/cli ./bin/cli
|
|
COPY ./xtask ./xtask
|
|
|
|
# Set Version
|
|
ARG VERSION="0.0.0"
|
|
ARG IMAGE_TAG=""
|
|
RUN cargo set-version -p komodo_core ${VERSION}${IMAGE_TAG:+-${IMAGE_TAG}}
|
|
|
|
# Compile bin
|
|
RUN \
|
|
cargo build -p komodo_core --release && \
|
|
cargo build -p komodo_periphery --release && \
|
|
cargo build -p komodo_cli --release && \
|
|
cargo strip
|
|
|
|
# Copy just the binaries to scratch image
|
|
FROM scratch
|
|
|
|
COPY --from=builder /builder/target/release/core /core
|
|
COPY --from=builder /builder/target/release/periphery /periphery
|
|
COPY --from=builder /builder/target/release/km /km
|
|
|
|
LABEL org.opencontainers.image.source="https://github.com/moghtech/komodo"
|
|
LABEL org.opencontainers.image.description="Komodo Binaries"
|
|
LABEL org.opencontainers.image.licenses="GPL-3.0" |