compose/Dockerfile

31 lines
964 B
Docker
Raw Normal View History

FROM debian:wheezy
RUN apt-get update -qq
# Compose dependencies
RUN apt-get install -qqy python python-pip python-dev git
# Test dependencies
RUN apt-get install -qqy apt-transport-https ca-certificates curl lxc iptables
RUN curl https://get.docker.com/builds/Linux/x86_64/docker-1.3.3 > /usr/local/bin/docker-1.3.3 && chmod +x /usr/local/bin/docker-1.3.3
RUN curl https://get.docker.com/builds/Linux/x86_64/docker-1.4.1 > /usr/local/bin/docker-1.4.1 && chmod +x /usr/local/bin/docker-1.4.1
RUN curl https://get.docker.com/builds/Linux/x86_64/docker-1.5.0 > /usr/local/bin/docker-1.5.0 && chmod +x /usr/local/bin/docker-1.5.0
RUN 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"]