Skip to content

Commit

Permalink
fix: redirect apt output to /dev/null (MystenLabs#617)
Browse files Browse the repository at this point in the history
* fix: redirect apt output to /dev/null

* fix: fix build for workspace to include all features

* fix: simplified redirect to /dev/null
  • Loading branch information
allan-bailey authored Jul 28, 2022
1 parent 24b2629 commit 2801b40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions narwhal/Docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WORKDIR "$WORKDIR/narwhal"
ARG BUILD_MODE

# Install basic dependencies
RUN apt-get -qq update \
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update \
&& DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -qq install -y --no-install-recommends \
tzdata \
git \
Expand All @@ -21,7 +21,7 @@ RUN apt-get -qq update \
libssl-dev \
pkg-config \
clang \
cmake \
cmake > /dev/null 2>&1 \
&& rm -rf /var/lib/apt/lists/*
# Install the fmt
RUN rustup component add rustfmt
Expand Down Expand Up @@ -61,7 +61,7 @@ ARG FEATURES="celo,benchmark"
COPY --from=planner /narwhal/Cargo.toml Cargo.toml
COPY --from=planner /narwhal/Cargo.lock Cargo.lock
COPY --from=planner /narwhal/workspace-hack workspace-hack
RUN cargo build --${BUILD_MODE} --features ${FEATURES}
RUN cargo build --${BUILD_MODE} --all-features

#################################################################
# Stage 2.5 : Building
Expand Down

0 comments on commit 2801b40

Please sign in to comment.