Use Python base image and run as normal user

This commit is contained in:
Ben Firshman 2014-03-03 15:08:51 +00:00
parent 9550387e39
commit ba66c849b5
1 changed files with 4 additions and 3 deletions

View File

@ -1,9 +1,10 @@
FROM stackbrew/ubuntu:12.04 FROM orchardup/python:2.7
RUN apt-get update -qq
RUN apt-get install -y python python-pip
ADD requirements.txt /code/ ADD requirements.txt /code/
WORKDIR /code/ WORKDIR /code/
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
ADD requirements-dev.txt /code/ ADD requirements-dev.txt /code/
RUN pip install -r requirements-dev.txt RUN pip install -r requirements-dev.txt
ADD . /code/ ADD . /code/
RUN useradd -d /home/user -m -s /bin/bash user
RUN chown -R user /code/
USER user