parent
3ab768fb14
commit
d5869742c2
|
|
@ -53,6 +53,8 @@ jobs:
|
|||
run: |
|
||||
sed -i '/image: appflowyinc\/appflowy_cloud:/d' docker-compose.yml
|
||||
sed -i '/image: appflowyinc\/admin_frontend:/d' docker-compose.yml
|
||||
sed -i 's/FEATURES: "disable_access_control"/FEATURES: ""/g' docker-compose.yml
|
||||
cat docker-compose.yml
|
||||
|
||||
- name: Run Docker-Compose
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
# Build argument for features
|
||||
ARG FEATURES=""
|
||||
|
||||
FROM lukemathwalker/cargo-chef:latest-rust-1.75.0 as chef
|
||||
|
||||
WORKDIR /app
|
||||
|
|
@ -16,7 +19,7 @@ COPY . .
|
|||
ENV SQLX_OFFLINE true
|
||||
|
||||
# Build the project
|
||||
RUN cargo build --profile=profiling --features="disable_access_control" --bin appflowy_cloud
|
||||
RUN cargo build --profile=profiling --features="${FEATURES}" --bin appflowy_cloud
|
||||
|
||||
|
||||
FROM debian:bookworm-slim AS runtime
|
||||
|
|
|
|||
|
|
@ -107,6 +107,8 @@ services:
|
|||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
FEATURES: "disable_access_control"
|
||||
image: appflowyinc/appflowy_cloud:${BACKEND_VERSION:-latest}
|
||||
|
||||
admin_frontend:
|
||||
|
|
|
|||
Loading…
Reference in New Issue