25 lines
529 B
Docker
25 lines
529 B
Docker
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"]
|