2023-07-20 05:31:19 +08:00
|
|
|
## base image
|
|
|
|
FROM archlinux:base as setup-cpp-arch-mingw
|
|
|
|
|
|
|
|
RUN pacman -Syuu --noconfirm && \
|
|
|
|
pacman-db-upgrade && \
|
|
|
|
# install nodejs
|
|
|
|
pacman -S --noconfirm --needed nodejs npm && \
|
2023-07-20 17:58:51 +08:00
|
|
|
# install setup-cpp
|
|
|
|
npm install -g setup-cpp@v0.32.1 && \
|
2023-07-20 05:31:19 +08:00
|
|
|
# install the compiler and tools
|
2023-07-20 17:58:51 +08:00
|
|
|
setup-cpp \
|
2023-07-20 05:31:19 +08:00
|
|
|
--compiler mingw \
|
|
|
|
--cmake true \
|
|
|
|
--ninja true \
|
|
|
|
--task true \
|
|
|
|
--vcpkg true \
|
|
|
|
--python true \
|
|
|
|
--make true \
|
|
|
|
--cppcheck true \
|
|
|
|
--gcovr true \
|
|
|
|
--doxygen true \
|
2023-07-20 18:12:39 +08:00
|
|
|
--ccache true && \
|
2023-07-20 05:31:19 +08:00
|
|
|
# arch cleanup
|
|
|
|
pacman -Scc --noconfirm && \
|
|
|
|
rm -rf /var/cache/pacman/pkg/* && \
|
|
|
|
rm -rf /tmp/*
|
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/bash"]
|