Skip to content

Instantly share code, notes, and snippets.

@nickpegg
Created February 19, 2014 01:58
Show Gist options
  • Save nickpegg/9084697 to your computer and use it in GitHub Desktop.
Save nickpegg/9084697 to your computer and use it in GitHub Desktop.
lg/Dockerfile
FROM ubuntu:12.04
RUN apt-get update
RUN apt-get install -y mtr-tiny iputils-ping python python-dev python-pip git build-essential
RUN pip install -r https://raw.github.com/nickpegg/lg/master/requirements.txt
RUN pip install uwsgi
ADD adduser.sh /
RUN /adduser.sh
VOLUME /srv/lg
WORKDIR /srv/lg
CMD uwsgi -p 16 -s 0.0.0.0:5000 --uid lg -w glass:app
EXPOSE 5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment