File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,10 +16,9 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F9
1616RUN apt-get update -q
1717RUN apt-get install -yq lxc-docker-0.8.0
1818
19- # install latest pip
20- RUN wget -q https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py && \
21- python get-pip.py && \
22- rm get-pip.py
19+ # install recent pip
20+ RUN wget -qO- https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py | python -
21+
2322# install hook dependencies
2423RUN pip install pyyaml requests
2524
@@ -51,6 +50,7 @@ RUN chown -R root:root /app
5150
5251# define the execution environment
5352VOLUME /var/lib/docker
53+ WORKDIR /app
5454ENTRYPOINT ["/app/bin/entry" ]
5555CMD ["/app/bin/boot" ]
5656EXPOSE 22
Original file line number Diff line number Diff line change @@ -11,5 +11,6 @@ RUN apt-get install -yq redis-server
1111ADD . /app
1212
1313# define the execution environment
14+ WORKDIR /app
1415CMD ["/app/bin/boot" ]
1516EXPOSE 6379
Original file line number Diff line number Diff line change @@ -24,10 +24,9 @@ echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/dock
2424apt-get update
2525apt-get upgrade -yq
2626
27- # install latest pip
28- wget -q https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py && \
29- python get-pip.py && \
30- rm get-pip.py
27+ # install recent pip
28+ wget -qO- https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py | python -
29+
3130# install required packages
3231apt-get install lxc-docker-0.8.0 fail2ban curl git inotify-tools make -yq
3332
Original file line number Diff line number Diff line change @@ -24,10 +24,9 @@ echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/dock
2424apt-get update
2525apt-get upgrade -yq
2626
27- # install latest pip
28- wget -q https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py && \
29- python get-pip.py && \
30- rm get-pip.py
27+ # install recent pip
28+ wget -qO- https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py | python -
29+
3130# install required packages
3231apt-get install lxc-docker-0.8.0 fail2ban curl git inotify-tools make -yq
3332
Original file line number Diff line number Diff line change @@ -29,10 +29,9 @@ echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/dock
2929apt-get update
3030apt-get dist-upgrade -yq
3131
32- # install latest pip
33- wget -q https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py && \
34- python get-pip.py && \
35- rm get-pip.py
32+ # install recent pip
33+ wget -qO- https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py | python -
34+
3635# install required packages
3736apt-get install lxc-docker-0.8.0 fail2ban curl git inotify-tools make -yq
3837
Original file line number Diff line number Diff line change @@ -29,10 +29,9 @@ echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/dock
2929apt-get update
3030apt-get dist-upgrade -yq
3131
32- # install latest pip
33- wget -q https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py && \
34- python get-pip.py && \
35- rm get-pip.py
32+ # install recent pip
33+ wget -qO- https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py | python -
34+
3635# install required packages
3736apt-get install lxc-docker-0.8.0 fail2ban curl git inotify-tools make -yq
3837
Original file line number Diff line number Diff line change @@ -30,10 +30,9 @@ echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/dock
3030apt-get update
3131apt-get dist-upgrade -yq
3232
33- # install latest pip
34- wget -q https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py && \
35- python get-pip.py && \
36- rm get-pip.py
33+ # install recent pip
34+ wget -qO- https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py | python -
35+
3736# install required packages
3837apt-get install lxc-docker-0.8.0 fail2ban curl git inotify-tools make -yq
3938
Original file line number Diff line number Diff line change @@ -31,10 +31,9 @@ echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/dock
3131apt-get update
3232apt-get dist-upgrade -yq
3333
34- # install latest pip
35- wget -q https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py && \
36- python get-pip.py && \
37- rm get-pip.py
34+ # install recent pip
35+ wget -qO- https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py | python -
36+
3837# install required packages
3938apt-get install lxc-docker-0.8.0 fail2ban curl git inotify-tools make -yq
4039
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ RUN apt-get update && \
99RUN apt-get install -yq ruby1.9.1 rubygems
1010RUN gem install --no-ri --no-rdoc chef
1111
12- # install latest pip
12+ # install recent pip
1313RUN wget -qO- https://raw.github.com/pypa/pip/1.5.4/contrib/get-pip.py | python -
1414
1515# install requirements before ADD to cache layer and speed build
Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ ADD . /app
1313
1414# define the execution environment
1515VOLUME ["/var/lib/postgresql" ]
16+ WORKDIR /app
1617CMD ["/app/bin/boot" ]
1718EXPOSE 5432
You can’t perform that action at this time.
0 commit comments