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