From 84d5e31b32a8532b07137dbac17cae091fd6dedf Mon Sep 17 00:00:00 2001 From: Jon Massey Date: Thu, 29 Aug 2024 09:59:15 +0100 Subject: [PATCH] Add knitr libmagick++ dep libmagick++ is included in the opensafely R action image to support knitr and, by extension, rmarkdown etc. In order to support local running of such reports, this is now installed in the codespaces image. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d13dbc8..957504f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,8 +26,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ # Install python 3.10. This is the version used by the python-docker # image, used for analyses using the OpenSAFELY pipeline. --no-install-recommends curl python3.10 python3.10-distutils python3.10-venv \ - # Install dependency for R tidyverse package. - libxml2 &&\ + # Install dependencies for R tidyverse and knitr packages. + libxml2 libmagick++-6.q16-8 &&\ # Pip for Python 3.10 isn't included in deadsnakes, so install separately curl https://bootstrap.pypa.io/get-pip.py | python3.10 &&\ # Set default python, so that the Python virtualenv works as expected