Created
February 10, 2014 15:57
-
-
Save shalakhin/8918398 to your computer and use it in GitHub Desktop.
Dockerfile to create own docker-registry image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# VERSION 0.1 | |
# DOCKER-VERSION 0.8 | |
# AUTHOR: Olexandr Shalakhin <[email protected]> | |
# DESCRIPTION: Image with docker-registry project and dependecies | |
# TO_BUILD: docker build -rm -t registry . | |
# TO_RUN: docker run -p 5000:5000 registry | |
# Changes: | |
# - use ubuntu 13.10 | |
# - install pip/setuptools via apt-get | |
# - use Docker ENV to define SETTINGS_FLAVOR | |
# - add | |
FROM ubuntu:13.10 | |
RUN apt-get update; \ | |
apt-get install -y git-core build-essential python-dev python-setuptools python-pip libevent1-dev python-openssl liblzma-dev wget; \ | |
rm /var/lib/apt/lists/*_* | |
ADD . /docker-registry | |
ADD ./config/boto.cfg /etc/boto.cfg | |
RUN cd /docker-registry && pip install -r requirements.txt | |
RUN cp --no-clobber /docker-registry/config/config_sample.yml /docker-registry/config/config.yml | |
EXPOSE 5000 | |
ENV SETTINGS_FLAVOR prod | |
CMD cd /docker-registry && ./run.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment