forked from docker-archive/docker-registry
/
Dockerfile
28 lines (21 loc) · 925 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# VERSION 0.1
# DOCKER-VERSION 0.7.3
# AUTHOR: Sam Alba <sam@docker.com>
# DESCRIPTION: Image with docker-registry project and dependecies
# TO_BUILD: docker build -rm -t registry .
# TO_RUN: docker run -p 5000:5000 registry
FROM ubuntu:13.04
RUN apt-get update; \
apt-get install -y git-core build-essential python-dev \
libevent1-dev python-openssl liblzma-dev wget; \
rm /var/lib/apt/lists/*_*
RUN cd /tmp; wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
RUN cd /tmp; python ez_setup.py; easy_install pip; \
rm ez_setup.py
ADD requirements.txt /docker-registry/
RUN cd /docker-registry && pip install -r requirements.txt
ADD . /docker-registry
ADD ./config/boto.cfg /etc/boto.cfg
RUN cp --no-clobber /docker-registry/config/config_sample.yml /docker-registry/config/config.yml
EXPOSE 5000
CMD cd /docker-registry && ./setup-configs.sh && exec ./run.sh