Merge pull request #936 from AppFlowy-IO/remove-protobuf-compiler-from-admin-frontend

chore: remove protobuf compiler from admin frontend docker image
This commit is contained in:
Khor Shu Heng 2024-10-25 16:15:37 +08:00 committed by GitHub
commit 359d686b27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 18 deletions

View File

@ -3,25 +3,7 @@
FROM lukemathwalker/cargo-chef:latest-rust-1.77 as chef
WORKDIR /app
RUN apt update && apt install lld clang protobuf-compiler -y
# FROM chef as planner
# COPY . .
# # Compute a lock-like file for our project
# WORKDIR /app/admin_frontend
# RUN cargo chef prepare --recipe-path recipe.json
#
# FROM chef as builder
# COPY . .
# WORKDIR /app/admin_frontend
# COPY --from=planner /app/admin_frontend/recipe.json recipe.json
# # Build our project dependencies
# RUN cargo chef cook --release --recipe-path recipe.json
#
# # Build the project
# RUN cargo build --release --bin admin_frontend
# Chef failed to build, so we're using the following instead
FROM chef as builder
COPY . .
WORKDIR /app/admin_frontend