2023-07-20 05:31:19 +08:00
|
|
|
## base image
|
2024-04-03 15:15:43 +08:00
|
|
|
FROM archlinux:base AS setup-cpp-arch-mingw
|
2023-07-20 05:31:19 +08:00
|
|
|
|
|
|
|
RUN pacman -Syuu --noconfirm && \
|
|
|
|
pacman-db-upgrade && \
|
2024-04-03 15:15:43 +08:00
|
|
|
# install nodejs
|
2023-07-20 05:31:19 +08:00
|
|
|
pacman -S --noconfirm --needed nodejs npm && \
|
2024-04-03 15:15:43 +08:00
|
|
|
# install setup-cpp
|
2024-08-23 06:14:53 +08:00
|
|
|
npm install -g setup-cpp@v0.39.0 && \
|
2024-04-03 15:15:43 +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 && \
|
2024-04-03 15:15:43 +08:00
|
|
|
# arch cleanup
|
2023-07-20 05:31:19 +08:00
|
|
|
pacman -Scc --noconfirm && \
|
|
|
|
rm -rf /var/cache/pacman/pkg/* && \
|
|
|
|
rm -rf /tmp/*
|
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/bash"]
|