Skip to content

Commit

Permalink
build(Dockerfile): build irohad and kagami only
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 4, 2024
1 parent 0d8091a commit 4819ab7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=/x86_64-linux-musl-native/bin/
# 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 kagami --target x86_64-unknown-linux-musl --profile deploy


# final image
Expand Down Expand Up @@ -77,7 +76,6 @@ RUN <<EOT
EOT

COPY --from=builder $TARGET_DIR/irohad $BIN_PATH
COPY --from=builder $TARGET_DIR/iroha $BIN_PATH
COPY --from=builder $TARGET_DIR/kagami $BIN_PATH
USER $USER
CMD ["irohad"]

0 comments on commit 4819ab7

Please sign in to comment.