setup-cpp/dev/docker/setup-cpp/setup-cpp-ubuntu-20.0.4-llv...

39 lines
1.2 KiB
Plaintext
Raw Normal View History

2023-09-12 04:50:40 +08:00
#### Base Image
2024-04-03 15:15:43 +08:00
FROM ubuntu:20.04 AS setup-cpp-ubuntu-mingw
2023-09-12 04:50:40 +08:00
RUN apt-get update -qq && \
2024-04-03 15:15:43 +08:00
# install latest nodejs on ubuntu 20.04
2023-09-12 04:50:40 +08:00
apt-get update -qq && \
apt-get install -y --no-install-recommends curl gnupg ca-certificates && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
2023-09-12 04:50:40 +08:00
apt-get update -qq && \
apt-get install -y --no-install-recommends nodejs && \
2024-04-03 15:15:43 +08:00
# install setup-cpp
2024-09-05 10:41:56 +08:00
npm install -g setup-cpp@v0.40.0 && \
2024-04-03 15:15:43 +08:00
# install the compiler and tools
2023-09-12 04:50:40 +08:00
setup-cpp \
--nala true \
--compiler mingw \
--cmake true \
--ninja true \
--task true \
--vcpkg true \
--python true \
--make true \
--cppcheck true \
--gcovr true \
--doxygen true \
--ccache true \
--powershell true && \
2024-04-03 15:15:43 +08:00
# cleanup
2023-09-12 04:50:40 +08:00
nala autoremove -y && \
nala autopurge -y && \
apt-get clean && \
nala clean --lists && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*
ENTRYPOINT ["/bin/bash"]