forked from docker-archive/docker-registry
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
35 lines (25 loc) · 883 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
29
30
31
32
33
34
35
# VERSION 0.1
# DOCKER-VERSION 0.7.3
# AUTHOR: Sam Alba <[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
# Latest Ubuntu LTS
FROM ubuntu:14.04
# Update
RUN apt-get update
RUN apt-get -y upgrade
# Install pip
RUN apt-get -y install python-pip
# Install deps for backports.lzma (python2 requires it)
RUN apt-get -y install python-dev liblzma-dev libevent1-dev
COPY . /docker-registry
COPY ./config/boto.cfg /etc/boto.cfg
# Install core
RUN pip install /docker-registry/depends/docker-registry-core
# Install registry
RUN pip install file:///docker-registry#egg=docker-registry[bugsnag,newrelic,cors]
ENV DOCKER_REGISTRY_CONFIG /docker-registry/config/config_sample.yml
ENV SETTINGS_FLAVOR dev
EXPOSE 5000
CMD ["docker-registry"]