add zshrc to ~user

This commit is contained in:
Christoph Gebhardt 2017-03-26 18:05:47 +02:00
parent 0afda9d658
commit 833a396f29
2 changed files with 5 additions and 4 deletions

View file

@ -17,9 +17,10 @@ RUN git clone https://git.zx2c4.com/password-store && \
cd password-store && \
make install && cd .. && \
rm -rf password-store
RUN addgroup user -g 1000 && \
adduser user -G user -u 1000 -D -s /bin/zsh
ENV LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8
WORKDIR /root
ADD zshrc /root/.zshrc
RUN addgroup user -g 1000 && \
adduser user -G user -u 1000 -D -s /bin/zsh && \
cp /root/.zshrc /home/user/.zshrc
ENV LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8
CMD zsh

View file

@ -1 +1 @@
docker run --rm -ti -v ${HOME}/.gnupg:/home/user/.gnupg -v ${HOME}/.ssh:/home/user/.ssh -v ${HOME}/.password-store:/home/user/.password-store hnrd/toolbox
docker run --rm -ti -v ${HOME}/.gnupg:/home/user/.gnupg -v ${HOME}/.ssh:/home/user/.ssh -v ${HOME}/.password-store:/home/user/.password-store hnrd/toolbox su -l user