Add R devel environment and lang server

This commit is contained in:
Maciej Lebiest 2023-10-05 12:56:53 +02:00 committed by GitHub
parent 3958be32e3
commit 4919fa5860
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,8 @@ ENV PYTHON_DEVEL_PKGS="\
python3\
conda"
ENV R_DEVEL_PKGS="R-core R-core-devel"
ENV MASON_PKGS=" \
bash-language-server \
css-lsp \
@ -53,8 +55,9 @@ 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} \
&& dnf clean all && \
${GENERAL_PKGS} ${NEOVIM_PKGS} ${PYTHON_DEVEL_PKGS} ${R_DEVEL_PKGS} && \
R -e 'install.packages("languageserver", repos = "http://cran.us.r-project.org")' && \
dnf clean all && \
pip install ${PIP_PKGS}
RUN rm /root/.config/nvim/lazy-lock.json || true