1
0

Dockerfile 570 B

123456789101112131415161718192021222324
  1. ARG YCM_PYTHON=py3
  2. ARG ARCH=x86_64
  3. FROM youcompleteme/ycm-vim-${ARCH}-${YCM_PYTHON}:test
  4. RUN apt-get update && \
  5. apt-get -y --no-install-recommends install less && \
  6. apt-get -y autoremove
  7. RUN useradd -ms /bin/bash -d /home/dev -G sudo dev && \
  8. echo "dev:dev" | chpasswd && \
  9. echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/sudo
  10. USER dev
  11. WORKDIR /home/dev
  12. ENV HOME /home/dev
  13. ENV PYTHON_CONFIGURE_OPTS --enable-shared
  14. ADD --chown=dev:dev .vim/ /home/dev/.vim/
  15. ## cleanup of files from setup
  16. RUN sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*