fix: fix admin frontend image compilation failure (#714)

This commit is contained in:
Khor Shu Heng 2024-08-05 23:42:42 +08:00 committed by GitHub
parent 54dea523e6
commit e9e35f5700
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
FROM lukemathwalker/cargo-chef:latest-rust-1.77 as chef
WORKDIR /app
RUN apt update && apt install lld clang -y
RUN apt update && apt install lld clang protobuf-compiler -y
# FROM chef as planner
# COPY . .
@ -30,11 +30,11 @@ RUN cargo build --release --bin admin_frontend
FROM debian AS runtime
WORKDIR /app
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends libc6 libssl-dev \
# Clean up
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
&& apt-get install -y --no-install-recommends libc6 libssl-dev \
# Clean up
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/admin_frontend /usr/local/bin/admin_frontend
COPY --from=builder /app/admin_frontend/assets /app/assets