forked from docker-archive/docker-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (25 loc) · 880 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
add . /docker-registry
add ./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]
env DOCKER_REGISTRY_CONFIG /docker-registry/config/config_sample.yml
env SETTINGS_FLAVOR dev
expose 5000
cmd exec docker-registry