From ba66c849b5a6883792f6a426f5fd09b30d9ff93a Mon Sep 17 00:00:00 2001 From: Ben Firshman Date: Mon, 3 Mar 2014 15:08:51 +0000 Subject: [PATCH] Use Python base image and run as normal user --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4d31a5a00..961a5511b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,10 @@ -FROM stackbrew/ubuntu:12.04 -RUN apt-get update -qq -RUN apt-get install -y python python-pip +FROM orchardup/python:2.7 ADD requirements.txt /code/ WORKDIR /code/ RUN pip install -r requirements.txt ADD requirements-dev.txt /code/ RUN pip install -r requirements-dev.txt ADD . /code/ +RUN useradd -d /home/user -m -s /bin/bash user +RUN chown -R user /code/ +USER user