| 1234567891011121314151617181920 |
- 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
- # Passed by build.sh. Without this the container has no .git, so the commit
- # probe fails and the shipped deb reports "unknown".
- ARG BUILD_GIT_COMMIT=unknown
- WORKDIR /build
- COPY . /build/
- RUN cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_WEBUI=ON -DBUILD_TESTS=OFF \
- -DSVAPI_GIT_COMMIT="${BUILD_GIT_COMMIT}" \
- -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 /
|