From 0c16fbdcc3a85a91b5d0ea70759b63bef4ef7609 Mon Sep 17 00:00:00 2001 From: Pavel Kirilin <win10@list.ru> Date: Mon, 27 Dec 2021 23:07:04 +0400 Subject: [PATCH] Fixed dockerfile, added features flag. Signed-off-by: Pavel Kirilin <win10@list.ru> --- deploy/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/Dockerfile b/deploy/Dockerfile index 596d252..96c0cb4 100644 --- a/deploy/Dockerfile +++ b/deploy/Dockerfile @@ -8,10 +8,10 @@ RUN cargo chef prepare --recipe-path recipe.json FROM chef AS builder COPY --from=planner /app/recipe.json recipe.json # Build dependencies - this is the caching Docker layer! -RUN cargo chef cook --release --recipe-path recipe.json +RUN cargo chef cook --release --features=all --recipe-path recipe.json # Build application COPY . . -RUN cargo build --release --bin rustus +RUN cargo build --release --bin rustus --features=all FROM debian:bullseye-20211201-slim AS runtime WORKDIR app -- GitLab