Skip to content

Instantly share code, notes, and snippets.

@pvanheus
Created November 12, 2015 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvanheus/d55ad28b697516337011 to your computer and use it in GitHub Desktop.
Save pvanheus/d55ad28b697516337011 to your computer and use it in GitHub Desktop.
FROM ubuntu:latest
MAINTAINER Peter van Heusden <pvh@sanbi.ac.za> version: 0.1
RUN apt-get update && apt-get install -y libmysqlclient-dev libmemcache-dev zlib1g-dev libssl-dev python-dev libxml2-dev libxslt1-dev build-essential git python-virtualenv && apt-get clean && rm -rf /var/lib/apt/lists/*
ENV JMS_USER jms
ENV JMS_USER_HOME /home/jms
ENV JMS_ROOT ${JMS_USER_HOME}/JMS
ENV JMS_SRC ${JMS_ROOT}/src
RUN adduser --disabled-password --gecos 'Job Management System' jms
USER $JMS_USER
WORKDIR $JMS_USER_HOME
RUN git clone https://github.com/RUBi-ZA/JMS.git
WORKDIR $JMS_SRC
RUN virtualenv venv
RUN . venv/bin/activate && pip install -r requirements.txt
CMD ["/bin/bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment