Skip to content

Commit

Permalink
build(Dockerfile): build only irohad, iroha and kagami
Browse files Browse the repository at this point in the history
Signed-off-by: Nurzhan Sakén <[email protected]>
  • Loading branch information
nxsaken committed Jun 6, 2024
1 parent 1cfa260 commit 6d244f5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#base stage
FROM --platform=linux/amd64 archlinux:base-devel AS builder

ARG NIGHTLY_VERSION=2024-04-18
Expand Down Expand Up @@ -34,14 +33,16 @@ 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 \
-p kagami \
--target x86_64-unknown-linux-musl \
--profile deploy


# final image
FROM alpine:3.20

ARG STORAGE=/storage
Expand Down

0 comments on commit 6d244f5

Please sign in to comment.