12 lines
413 B
Docker
12 lines
413 B
Docker
|
FROM harbor.repository.lb.home.dc.internal.amuz.es/infrastructure/alpine-base:3.19-latest AS build
|
||
|
RUN apk add --no-cache cmake make musl-dev gcc libcap-static libcap-dev
|
||
|
WORKDIR /build
|
||
|
COPY . .
|
||
|
RUN \
|
||
|
cmake -S . -B build -DCMAKE_BUILD_TYPE=MinSizeRel && \
|
||
|
cmake --build build --config MinSizeRel && \
|
||
|
strip build/setcap-static
|
||
|
|
||
|
FROM scratch
|
||
|
COPY --from=build /build/build/setcap-static /setcap-static
|