- web-ui/main.go: full CRUD REST API + dark-theme SPA (servers, parts, part-types) - Dockerfile.cli: add pciutils runtime dep for lspci NIC enrichment Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
15 lines
556 B
Text
15 lines
556 B
Text
FROM ubuntu:22.04 AS builder
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
cmake make g++ && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
WORKDIR /src
|
|
COPY . .
|
|
RUN rm -rf build && cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && \
|
|
cmake --build build --parallel
|
|
|
|
FROM ubuntu:22.04
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
dmidecode iproute2 util-linux pciutils libstdc++6 && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
COPY --from=builder /src/build/inventory-cli /usr/local/bin/
|
|
ENTRYPOINT ["inventory-cli"]
|