FROM node:24-bookworm-slim # Install necessary dependencies for building Rust projects and running tests RUN apt-get update && apt-get install -y \ curl \ git \ zstd \ build-essential \ pkg-config \ libssl-dev \ gnupg \ unzip \ tar \ && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y \ postgresql-client \ protobuf-compiler \ && rm -rf /var/lib/apt/lists/* # install bun RUN curl -fsSL https://bun.sh/install | bash ENV PATH="/root/.bun/bin:${PATH}" # install rust and cargo RUN apt-get update && apt-get install -y curl build-essential RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ENV PATH="/root/.cargo/bin:${PATH}" # Set the working directory WORKDIR /app