setup-cpp/dev/docker/ci/fedora.dockerfile

35 lines
776 B
Plaintext
Raw Normal View History

2025-02-23 18:52:45 +08:00
## base image
FROM --platform=$BUILDPLATFORM fedora:40 AS fedora-nodejs
2025-02-23 18:52:45 +08:00
# install nodejs
RUN dnf -y install nodejs npm && \
# cleanup
dnf clean all && \
rm -rf /tmp/*
FROM fedora-nodejs AS setup-cpp-fedora
2025-02-23 18:52:45 +08:00
COPY "./dist/modern" "/usr/lib/setup-cpp/"
2025-02-23 18:52:45 +08:00
# install the cpp tools
RUN node --enable-source-maps /usr/lib/setup-cpp/setup-cpp.mjs \
2025-02-23 18:52:45 +08:00
--cmake true \
--ninja true \
--task true \
--vcpkg true \
--python true \
--make true \
--cppcheck true \
--gcovr true \
--doxygen true \
--ccache true \
--conan true \
--cmakelang true \
--meson true && \
2025-02-23 18:52:45 +08:00
# cleanup
dnf clean all && \
rm -rf /tmp/*
SHELL ["/bin/bash", "-l", "-c"]
ENTRYPOINT ["/bin/bash", "-l"]