Update dockerfile

This commit is contained in:
2024-05-02 10:46:29 +00:00
parent eeda4347e9
commit 52ee93178f

View File

@@ -1,18 +1,16 @@
FROM mcr.microsoft.com/devcontainers/cpp:0-ubuntu-22.04 FROM mcr.microsoft.com/devcontainers/cpp:0-ubuntu-22.04
ARG REINSTALL_CMAKE_VERSION_FROM_SOURCE="3.22.2" RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
# Optionally install the cmake for vcpkg python3 \
COPY ./reinstall-cmake.sh /tmp/ python3-pip \
lcov \
RUN if [ "${REINSTALL_CMAKE_VERSION_FROM_SOURCE}" != "none" ]; then \ cmake \
chmod +x /tmp/reinstall-cmake.sh && /tmp/reinstall-cmake.sh ${REINSTALL_CMAKE_VERSION_FROM_SOURCE}; \ && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
fi \
&& rm -f /tmp/reinstall-cmake.sh
RUN pip3 install --no-cache-dir \
cpplint \
cmake-format\
gcovr
# [Optional] Uncomment this section to install additional vcpkg ports. # [Optional] Uncomment this section to install additional vcpkg ports.
# RUN su vscode -c "${VCPKG_ROOT}/vcpkg install <your-port-name-here>" # RUN su vscode -c "${VCPKG_ROOT}/vcpkg install <your-port-name-here>"
# [Optional] Uncomment this section to install additional packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>