ARG BASE_IMAGE=smartbotic-vectorapi-build-base:debian13 FROM ${BASE_IMAGE} AS builder ARG BUILD_VERSION=0.1.0 ARG BUILD_DEB_REVISION=1 # The runner vendors QuickJS from GitHub at configure time; the build network # already reaches GitHub for cpp-httplib, so this adds no new requirement. ARG BUILD_RUNNER=ON WORKDIR /build COPY . /build/ RUN cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_WEBUI=ON -DBUILD_TESTS=OFF \ -DBUILD_RUNNER=${BUILD_RUNNER} -S . \ && cmake --build build -j"$(nproc)" RUN OUTPUT_DIR=/packages BUILD_DEB_REVISION=${BUILD_DEB_REVISION} packaging/deb/create-debs.sh FROM scratch AS packages COPY --from=builder /packages/*.deb /