-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 1004 Bytes
/
Dockerfile
File metadata and controls
32 lines (24 loc) · 1004 Bytes
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
29
30
31
32
FROM deis/base:latest
MAINTAINER Gabriel Monroy <gabriel@opdemand.com>
# install required packages (copied from dotcloud/docker-registry Dockerfile)
RUN sed -i 's/main$/main universe/' /etc/apt/sources.list && apt-get update
RUN apt-get install -y git-core build-essential python-dev \
libevent-dev python-openssl liblzma-dev wget
RUN apt-get install -yq python-pip
# create a registry user
RUN useradd -s /bin/bash registry
# add the docker registry source from github
RUN git clone https://github.com/dotcloud/docker-registry /docker-registry
# lock the registry version to a tag
RUN cd /docker-registry && git checkout 0.6.6
# install boto configuration
RUN cp /docker-registry/config/boto.cfg /etc/boto.cfg
RUN cd /docker-registry && pip install -r requirements.txt
# create data volume
RUN mkdir -p /data/repositories && chown -R registry:registry /data
VOLUME /data
# add the current build context to /app
ADD . /app
# define the execution environment
CMD ["/app/bin/boot"]
EXPOSE 5000