2014-08-31 12:53:59 +02:00
|
|
|
FROM debian:wheezy
|
2015-02-23 12:01:37 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2014-09-30 20:54:13 +02:00
|
|
|
RUN useradd -d /home/user -m -s /bin/bash user
|
2014-01-16 18:28:47 +01:00
|
|
|
WORKDIR /code/
|
2014-07-30 22:11:11 +02:00
|
|
|
|
|
|
|
ADD requirements.txt /code/
|
2014-01-16 18:28:47 +01:00
|
|
|
RUN pip install -r requirements.txt
|
2014-07-30 22:11:11 +02:00
|
|
|
|
2014-01-16 18:28:47 +01:00
|
|
|
ADD requirements-dev.txt /code/
|
|
|
|
RUN pip install -r requirements-dev.txt
|
2014-07-30 22:11:11 +02:00
|
|
|
|
2014-01-16 18:28:47 +01:00
|
|
|
ADD . /code/
|
2014-07-30 22:11:11 +02:00
|
|
|
RUN python setup.py install
|
2014-09-30 20:54:13 +02:00
|
|
|
|
|
|
|
RUN chown -R user /code/
|
2014-11-20 18:23:43 +01:00
|
|
|
|
2015-01-20 12:27:10 +01:00
|
|
|
ENTRYPOINT ["/usr/local/bin/docker-compose"]
|