This repository was archived by the owner on Sep 12, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 6
6
# TO_RUN: docker run -p 5000:5000 registry
7
7
8
8
# Latest Ubuntu LTS
9
- from ubuntu:14.04
9
+ FROM ubuntu:14.04
10
10
11
11
# Update
12
- run apt-get update
13
- run apt-get -y upgrade
12
+ RUN apt-get update
13
+ RUN apt-get -y upgrade
14
14
15
15
# Install pip
16
- run apt-get -y install python-pip
16
+ RUN apt-get -y install python-pip
17
17
18
18
# Install deps for backports.lzma (python2 requires it)
19
- run apt-get -y install python-dev liblzma-dev libevent1-dev
19
+ RUN apt-get -y install python-dev liblzma-dev libevent1-dev
20
20
21
- add . /docker-registry
22
- add ./config/boto.cfg /etc/boto.cfg
21
+ COPY . /docker-registry
22
+ COPY ./config/boto.cfg /etc/boto.cfg
23
23
24
24
# Install core
25
- run pip install /docker-registry/depends/docker-registry-core
25
+ RUN pip install /docker-registry/depends/docker-registry-core
26
26
27
27
# Install registry
28
- run pip install file:///docker-registry#egg=docker-registry[bugsnag,newrelic,cors]
28
+ RUN pip install file:///docker-registry#egg=docker-registry[bugsnag,newrelic,cors]
29
29
30
- env DOCKER_REGISTRY_CONFIG /docker-registry/config/config_sample.yml
31
- env SETTINGS_FLAVOR dev
30
+ ENV DOCKER_REGISTRY_CONFIG /docker-registry/config/config_sample.yml
31
+ ENV SETTINGS_FLAVOR dev
32
32
33
- expose 5000
33
+ EXPOSE 5000
34
34
35
- cmd exec docker-registry
35
+ cmd [ " docker-registry" ]
You can’t perform that action at this time.
0 commit comments