From 746c80cef23acec5e31cf975485eb7724c44be14 Mon Sep 17 00:00:00 2001 From: Maciej Lebiest Date: Thu, 14 Dec 2023 21:53:58 +0100 Subject: [PATCH] add python3-devel for pip packages building on image build --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 08148df..3f36c2f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,8 @@ ENV PYTHON_DEVEL_PKGS="\ python3\ conda" +ENV BUILD_ONLY_PKGS="python3-devel" + ENV R_DEVEL_PKGS="R-core R-core-devel cmake" ENV RUBY_DEVEL_PKGS="ruby-devel rubygems" @@ -59,11 +61,12 @@ ENV PIP_PKGS="pynvim ansible ansible-lint" COPY . /root/.config/nvim # install system dependencies RUN dnf install -y \ - ${GENERAL_PKGS} ${NEOVIM_PKGS} ${PYTHON_DEVEL_PKGS} ${R_DEVEL_PKGS} ${RUBY_DEVEL_PKGS} && \ + ${GENERAL_PKGS} ${NEOVIM_PKGS} ${PYTHON_DEVEL_PKGS} ${R_DEVEL_PKGS} ${RUBY_DEVEL_PKGS} ${BUILD_ONLY_PKGS} && \ R -e 'install.packages("languageserver", repos = "http://cran.us.r-project.org")' && \ + pip install ${PIP_PKGS} && \ + dnf remove -y ${BUILD_ONLY_PKGS} && \ dnf -y autoremove && \ - dnf clean all && \ - pip install ${PIP_PKGS} + dnf clean all RUN rm /root/.config/nvim/lazy-lock.json || true # install lsp and linters using mason