Permalink
Browse files

Use Python base image and run as normal user

  • Loading branch information...
1 parent 9550387 commit ba66c849b5a6883792f6a426f5fd09b30d9ff93a @bfirsh bfirsh committed Mar 3, 2014
Showing with 4 additions and 3 deletions.
  1. +4 −3 Dockerfile
View
@@ -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

0 comments on commit ba66c84

Please sign in to comment.