From f5a9efcc9e07fdb2324bbaa953ba60ba76b5ba63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nurzhan=20Sak=C3=A9n?= Date: Thu, 6 Jun 2024 10:07:56 +0400 Subject: [PATCH] build(Dockerfile): build only `irohad`, `iroha` and `kagami` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nurzhan Sakén --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index be530a66115..b91a7ea6b3a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,3 @@ -#base stage FROM --platform=linux/amd64 archlinux:base-devel AS builder ARG NIGHTLY_VERSION=2024-04-18 @@ -34,14 +33,15 @@ ENV PATH="$PATH:/x86_64-linux-musl-native/bin" ENV RUSTFLAGS="-C link-arg=-static" ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=/x86_64-linux-musl-native/bin/x86_64-linux-musl-gcc -# builder stage WORKDIR /iroha COPY . . -# FIXME: consider building only `irohad`, `iroha`, and `kagami`? -RUN cargo build --target x86_64-unknown-linux-musl --profile deploy +RUN cargo build \ + -p irohad \ + -p iroha_client_cli \ + -p kagami \ + --target x86_64-unknown-linux-musl \ + --profile deploy - -# final image FROM alpine:3.20 ARG STORAGE=/storage