FROM debian:stable-slim as build ENV DEBIAN_FRONTEND=noninteractive TZ="Etc/UTC" ENV NPROC=2 RUN apt update \ && apt install make bash build-essential git -y \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* COPY ../../ /fluffy WORKDIR /fluffy RUN --mount=type=cache,target=/fluffy/vendor \ make deps -j${NPROC} RUN --mount=type=cache,target=/fluffy/vendor <