chore: fix build args (#346)
* chore: fix build args * chore: fix build args
This commit is contained in:
parent
b71e443d3f
commit
66b7637ad0
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue