From 579154fec36954515ed46907bfc9d0c389d6e1f1 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Wed, 11 Mar 2015 22:22:38 -0400 Subject: [PATCH] docker file --- Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2f9290f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM ubuntu + +# Install Python Setuptools +RUN apt-get update +RUN apt-get install -y python-setuptools +RUN apt-get install -y python-dev +RUN apt-get install -y build-essential g++ git cmake zlib1g-dev libbz2-dev +RUN apt-get install -y libmysqlclient-dev + +# Install pip +RUN easy_install pip + +# Add and install Python modules +ADD requirements.txt /roadmap/requirements.txt +RUN cd /roadmap; pip install -r requirements.txt + +# Bundle app source +ADD . /roadmap + +# Expose +EXPOSE 8000 + +# Run +CMD ["python", "/roadmap/manage.py", "test"]