From 66b7637ad0cfadf160adeb0c701147e9abef6f05 Mon Sep 17 00:00:00 2001 From: "Nathan.fooo" <86001920+appflowy@users.noreply.github.com> Date: Fri, 23 Feb 2024 15:50:37 +0800 Subject: [PATCH] chore: fix build args (#346) * chore: fix build args * chore: fix build args --- .github/workflows/push_latest_docker.yml | 2 +- Dockerfile | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push_latest_docker.yml b/.github/workflows/push_latest_docker.yml index 32d3b458..ba7d0a57 100644 --- a/.github/workflows/push_latest_docker.yml +++ b/.github/workflows/push_latest_docker.yml @@ -91,7 +91,7 @@ jobs: labels: ${{ steps.meta.outputs.labels }} provenance: false build-args: | - FEATURES=disable_access_control + FEATURES="disable_access_control" - name: Logout from Docker Hub if: always() diff --git a/Dockerfile b/Dockerfile index 0b1b580d..c3c9cfd4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ +FROM lukemathwalker/cargo-chef:latest-rust-1.75.0 as chef + # Build argument for features ARG FEATURES="" -FROM lukemathwalker/cargo-chef:latest-rust-1.75.0 as chef - WORKDIR /app RUN apt update && apt install lld clang -y @@ -19,7 +19,8 @@ COPY . . ENV SQLX_OFFLINE true # Build the project -RUN cargo build --profile=profiling --features="${FEATURES}" --bin appflowy_cloud +RUN echo "Building with features: ${FEATURES}" +RUN cargo build --profile=profiling --features=${FEATURES} --bin appflowy_cloud FROM debian:bookworm-slim AS runtime