using root user for Dockerfile

This commit is contained in:
Steffen Vogel 2015-11-24 20:12:16 +01:00
parent 1b7729718e
commit c06c9e4c4a

View file

@ -6,12 +6,8 @@ MAINTAINER "Steffen Vogel <post@steffenvogel.de>"
RUN sed -i 's|http://httpredir.debian.org|ftp://ftp.halifax.rwth-aachen.de|g' /etc/apt/sources.list
RUN apt-get update -y && apt-get install -y curl git
# Add user
RUN useradd -ms /bin/bash stv0g
USER stv0g
# Install dotfiles
WORKDIR /home/stv0g
WORKDIR /root
RUN curl -sSL https://raw.githubusercontent.com/stv0g/dotfiles/master/bootstrap.sh | bash
CMD /bin/bash