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 66# TO_RUN: docker run -p 5000:5000 registry
77
88# Latest Ubuntu LTS
9- from ubuntu:14.04
9+ FROM ubuntu:14.04
1010
1111# Update
12- run apt-get update
13- run apt-get -y upgrade
12+ RUN apt-get update
13+ RUN apt-get -y upgrade
1414
1515# Install pip
16- run apt-get -y install python-pip
16+ RUN apt-get -y install python-pip
1717
1818# 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
2020
21- add . /docker-registry
22- add ./config/boto.cfg /etc/boto.cfg
21+ COPY . /docker-registry
22+ COPY ./config/boto.cfg /etc/boto.cfg
2323
2424# Install core
25- run pip install /docker-registry/depends/docker-registry-core
25+ RUN pip install /docker-registry/depends/docker-registry-core
2626
2727# 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]
2929
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
3232
33- expose 5000
33+ EXPOSE 5000
3434
35- cmd exec docker-registry
35+ cmd [ " docker-registry" ]
You can’t perform that action at this time.
0 commit comments