Skip to content

Instantly share code, notes, and snippets.

@tobstarr
Last active December 20, 2015 00:49
Show Gist options
  • Save tobstarr/6044646 to your computer and use it in GitHub Desktop.
Save tobstarr/6044646 to your computer and use it in GitHub Desktop.
FROM ubuntu
RUN sed 's/main$/main universe/' -i /etc/apt/sources.list && apt-get update
RUN apt-get install -y git-core python-pip build-essential python-dev libevent1-dev -y
RUN git clone https://github.com/dotcloud/docker-registry.git /docker-registry
RUN cd /docker-registry && pip install -r requirements.txt
RUN cp /docker-registry/config_sample.yml /docker-registry/config.yml
EXPOSE 5000
CMD cd /docker-registry && gunicorn --access-logfile - --log-level debug --debug -b 0.0.0.0:5000 -w 1 wsgi:application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment