@@ -2,7 +2,6 @@ FROM ubuntu:12.04
2
2
MAINTAINER Doro Wu <fcwu.tw@gmail.com>
3
3
4
4
ENV DEBIAN_FRONTEND noninteractive
5
- ENV HTTP_PROXY http://172.17.42.1:3134
6
5
7
6
# setup our Ubuntu sources (ADD breaks caching)
8
7
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise main\n \
@@ -16,16 +15,16 @@ deb http://us.archive.ubuntu.com/ubuntu/ precise restricted\n\
16
15
RUN apt-mark hold initscripts udev plymouth mountall
17
16
RUN dpkg-divert --local --rename --add /sbin/initctl && ln -s /bin/true /sbin/initctl
18
17
19
- RUN apt-get update
18
+ RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get update
20
19
21
20
# install our "base" environment
22
- RUN apt-get install -y --no-install-recommends openssh-server pwgen sudo vim-tiny
23
- RUN apt-get install -y --no-install-recommends lxde
24
- RUN apt-get install -y --no-install-recommends x11vnc xvfb
25
- RUN apt-get install -y supervisor
26
- RUN apt-get install -y libreoffice firefox
21
+ RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y --no-install-recommends openssh-server pwgen sudo vim-tiny
22
+ RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y --no-install-recommends lxde
23
+ RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y --no-install-recommends x11vnc xvfb
24
+ RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y supervisor
25
+ RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y libreoffice firefox
27
26
# noVNC
28
- RUN apt-get install -y net-tools
27
+ RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y net-tools
29
28
30
29
ADD startup.sh /
31
30
ADD supervisord.conf /
0 commit comments