compose/Dockerfile

18 lines
429 B
Docker
Raw Normal View History

FROM debian:wheezy
RUN apt-get update -qq && apt-get install -qy python python-pip python-dev git && apt-get clean
RUN useradd -d /home/user -m -s /bin/bash user
2014-01-16 18:28:47 +01:00
WORKDIR /code/
ADD requirements.txt /code/
2014-01-16 18:28:47 +01:00
RUN pip install -r requirements.txt
2014-01-16 18:28:47 +01:00
ADD requirements-dev.txt /code/
RUN pip install -r requirements-dev.txt
2014-01-16 18:28:47 +01:00
ADD . /code/
RUN python setup.py install
RUN chown -R user /code/
ENTRYPOINT ["/usr/local/bin/docker-compose"]