Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use Python base image and run as normal user

  • Loading branch information...
commit ba66c849b5a6883792f6a426f5fd09b30d9ff93a 1 parent 9550387
@bfirsh bfirsh authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 Dockerfile
7 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
Please sign in to comment.
Something went wrong with that request. Please try again.