Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Erk- committed Mar 13, 2024
1 parent 144fc63 commit 03d2d94
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN <<EOT
apt-get install --assume-yes musl-dev clang lld
EOT

RUN <<EOT bash
RUN <<-EOT bash
set -ex
rustup target add "$RUST_TARGET"
rustup component add rust-src --toolchain "nightly"
Expand Down Expand Up @@ -55,18 +55,18 @@ RUN cargo chef prepare --recipe-path recipe.json

FROM chef AS builder
COPY --from=planner /app/recipe.json recipe.json
RUN <<EOF bash
#set -ex
#if test "$FEATURES" = ""; then
# cargo chef cook --target "$RUST_TARGET" --release --recipe-path recipe.json
#else
# cargo chef cook --target "$RUST_TARGET" --features="$FEATURES" --release --recipe-path recipe.json
#fi
RUN <<-EOF bash
set -ex
if test "$FEATURES" = ""; then
cargo chef cook --target "$RUST_TARGET" --release --recipe-path recipe.json
else
cargo chef cook --target "$RUST_TARGET" --features="$FEATURES" --release --recipe-path recipe.json
fi
EOF

COPY . .

RUN <<EOF bash
RUN <<-EOF bash
set -ex
if test "$FEATURES" = "" ; then
cargo build --release --target $RUST_TARGET
Expand Down

0 comments on commit 03d2d94

Please sign in to comment.