From 52ee93178f30b52004874091db843b19cfc6bb9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Thu, 2 May 2024 10:46:29 +0000 Subject: [PATCH] Update dockerfile --- .devcontainer/Dockerfile | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index b9bdeb7..18da87c 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,18 +1,16 @@ FROM mcr.microsoft.com/devcontainers/cpp:0-ubuntu-22.04 -ARG REINSTALL_CMAKE_VERSION_FROM_SOURCE="3.22.2" - -# Optionally install the cmake for vcpkg -COPY ./reinstall-cmake.sh /tmp/ - -RUN if [ "${REINSTALL_CMAKE_VERSION_FROM_SOURCE}" != "none" ]; then \ - chmod +x /tmp/reinstall-cmake.sh && /tmp/reinstall-cmake.sh ${REINSTALL_CMAKE_VERSION_FROM_SOURCE}; \ - fi \ - && rm -f /tmp/reinstall-cmake.sh +RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ + && apt-get -y install --no-install-recommends \ + python3 \ + python3-pip \ + lcov \ + cmake \ + && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* +RUN pip3 install --no-cache-dir \ + cpplint \ + cmake-format\ + gcovr # [Optional] Uncomment this section to install additional vcpkg ports. # RUN su vscode -c "${VCPKG_ROOT}/vcpkg install " - -# [Optional] Uncomment this section to install additional packages. -# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ -# && apt-get -y install --no-install-recommends