Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Dockerfile to build Python WSGI Application Containers
# Based on Ubuntu
############################################################
# Set the base image to Ubuntu
FROM ubuntu
# File Author / Maintainer
MAINTAINER Maintaner Name
# Add the application resources URL
RUN echo "deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -sc) main universe" >> /etc/apt/sources.list
# Update the sources list
RUN apt-get update
# Install basic applications
RUN apt-get install -y tar git curl nano wget dialog net-tools build-essential
# Install Python and Basic Python Tools
RUN apt-get install -y python python-dev python-setuptools python-pip python-mysqldb mysql-server libxml2-dev libxslt1-dev zlib1g-dev
# Copy the application folder inside the container ??? not sure if this is necessary..
# ADD /HarvardCards /HarvardCards
# git the code
RUN git clone https://github.com/Harvard-ATG/HarvardCards.git
WORKDIR /HarvardCards
RUN pip install -r requirements.txt
RUN ./manage.py syncdb --noinput
RUN ./manage.py migrate
CMD ./manage.py runserver 0.0.0.0:8080
EXPOSE 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.