mirror of
https://github.com/rmontanana/mdlp.git
synced 2025-08-15 07:25:56 +00:00
Update dockerfile
This commit is contained in:
@@ -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>
|
|
||||||
|
Reference in New Issue
Block a user