Skip to content

Commit

Permalink
fix(no deps for new user): This commit replaces user-wide install of …
Browse files Browse the repository at this point in the history
…global node modules to system-wide install
  • Loading branch information
Andrey Paskal committed Jun 9, 2024
1 parent 8e83df1 commit 508e743
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,17 @@ RUN sh -c 'curl -fLo "${XDG_DATA_HOME:-${USER_HOME}/.local/share}"/nvim/site/aut
--create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
# Update files ownership
RUN chown -R ${USER}:${USER} ${USER_HOME}

SHELL ["/bin/bash", "-c"]
USER ${USER}
# Install executables required by neovim plugins
RUN yarn global add \
# System-wide install executables required by neovim plugins
RUN npm -g install \
create-react-app \
prettier \
typescript-language-server \
typescript \
diagnostic-languageserver \
eslint

SHELL ["/bin/bash", "-c"]
USER ${USER}
WORKDIR ${USER_HOME}
# Install neovim plugins with vim-plug manager command PlugInstall
RUN nvim --headless +PlugInstall +qall 2> ${USER_HOME}/condev.log
Expand Down

0 comments on commit 508e743

Please sign in to comment.