roadmap/Dockerfile
2015-03-11 22:42:19 -04:00

42 lines
826 B
Docker

FROM ubuntu
RUN apt-get update
RUN apt-get upgrade -y
# Requirements
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 Python Setuptools
RUN apt-get install -y python-setuptools
# Install pip
RUN easy_install pip
RUN apt-get -y install mysql-server
# 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
EXPOSE 3306
# Run
CMD ["/usr/bin/mysqld_safe"]
CMD ["python", "/roadmap/manage.py", "test"]
# http://txt.fliglio.com/2013/11/creating-a-mysql-docker-container/
# http://blogs.aws.amazon.com/application-management/post/Tx1ZLAHMVBEDCOC/Dockerizing-a-Python-Web-App