From 7a6d92eef5e992915946b58b5818a2b65791392e Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Tue, 12 Mar 2019 14:35:47 +0000 Subject: Revert "Update to run as non root user" This reverts commit 12ff9f4c39e9fa79e1903b2c67ea2069f213b1be. --- Dockerfile | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index c22fc48..6d06f45 100644 --- a/Dockerfile +++ b/Dockerfile @@ -75,31 +75,27 @@ RUN cd /opt && pip3 install -r py3_requirements.txt ######################################## # Personalizations ######################################## -# Setup non root user -RUN groupadd -g 1000 thorny -RUN useradd -m -d /home/thorny -s /bin/bash -g thorny -u 1000 thorny -USER thorny # Add some aliases -COPY --chown=thorny bashrc /home/thorny/.bashrc +ADD bashrc /root/.bashrc # Add my git config -COPY --chown=thorny gitconfig /home/thorny/.gitconfig +ADD gitconfig /etc/gitconfig +# Change the workdir, Put it inside root so I can see neovim settings in finder +WORKDIR /root/app # Neovim needs this so that can work -RUN infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > /home/thorny/$TERM.ti -RUN tic /home/thorny/$TERM.ti +RUN infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > /tmp/$TERM.ti +RUN tic /tmp/$TERM.ti # Command for the image CMD ["/bin/bash"] # Add nvim config. Put this last since it changes often -COPY --chown=thorny nvim /home/thorny/.config/nvim +ADD nvim /root/.config/nvim # Install neovim plugins RUN nvim -i NONE -c PlugInstall -c quitall > /dev/null 2>&1 -RUN cd /home/thorny/.config/nvim/plugged/YouCompleteMe && python3 install.py +RUN cd /root/.config/nvim/plugged/YouCompleteMe && python3 install.py # Add flake8 config, don't trigger a long build process -COPY --chown=thorny flake8 /home/thorny/.flake8 +ADD flake8 /root/.flake8 # Add local vim-options, can override the one inside -COPY --chown=thorny vim-options /home/thorny/.config/nvim/plugged/vim-options +ADD vim-options /root/.config/nvim/plugged/vim-options # Add isort config, also changes often -COPY --chown=thorny isort.cfg /home/thorny/.isort.cfg +ADD isort.cfg /root/.isort.cfg # Add ranger config -COPY --chown=thorny rc.conf /home/thorny/.config/ranger/rc.conf -# Set the workdir -WORKDIR /src +ADD rc.conf /root/.config/ranger/rc.conf -- cgit v1.2.3