From a7d7f551a70dfc822dd5c6951f18305dd4bd79af Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Sat, 28 Feb 2015 18:44:36 +0000 Subject: [PATCH] final fixes --- Dockerfile | 4 ++-- mean | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e3d1217..b448301 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,9 +18,9 @@ RUN apt-get install -y nodejs # install ruby RUN apt-get install -y ruby1.9.1 ruby1.9.1-dev - # add a user -RUN useradd -ms /bin/bash docker +# and make them a sudoer +RUN useradd -ms /bin/bash docker && echo "docker:docker" | chpasswd && adduser docker sudo # switch to the docker user ENV HOME /home/docker diff --git a/mean b/mean index 9b61e85..3dfe8de 100755 --- a/mean +++ b/mean @@ -16,4 +16,4 @@ if docker inspect -f {{.Name}} data-docker-home > /dev/null fi -docker run -it --rm --volumes-from=data-docker-home -v ${PWD}:/working -w /working -p 9000:9000 -p 35729:25729 adamarthurryan/mean $@ \ No newline at end of file +docker run -it --rm --volumes-from=data-docker-home -v ${PWD}:/working -w /working -p 9000:9000 -p 35729:35729 adamarthurryan/mean $@ \ No newline at end of file