use unprivileged user
This commit is contained in:
parent
8abef6acff
commit
60b2239372
|
@ -16,7 +16,9 @@ RUN git clone https://git.zx2c4.com/password-store && \
|
||||||
cd password-store && \
|
cd password-store && \
|
||||||
make install && cd .. && \
|
make install && cd .. && \
|
||||||
rm -rf password-store
|
rm -rf password-store
|
||||||
ENV LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 HOME=/root
|
RUN addgroup user -g 1000 && \
|
||||||
|
adduser user -G user -u 1000 -D
|
||||||
|
ENV LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 HOME=/home/user
|
||||||
WORKDIR $HOME
|
WORKDIR $HOME
|
||||||
ADD zshrc /root/.zshrc
|
ADD zshrc $HOME/.zshrc
|
||||||
CMD zsh
|
CMD zsh
|
||||||
|
|
2
toolbox
2
toolbox
|
@ -1 +1 @@
|
||||||
docker run --rm -ti -v ${HOME}/.gnupg:/root/.gnupg -v ${HOME}/.ssh:/root/.ssh -v ${HOME}/.password-store:/root/.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
|
||||||
|
|
Loading…
Reference in New Issue