The dockerbuilder Dockerfile was installing one package per apt-get
install operation.
This changes it so that consecutive run apt-get install operations are
batched into a single operation.
| ... | ... |
@@ -19,19 +19,14 @@ run add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) |
| 19 | 19 |
run add-apt-repository -y ppa:dotcloud/docker-golang/ubuntu |
| 20 | 20 |
run apt-get update |
| 21 | 21 |
# Packages required to checkout, build and upload docker |
| 22 |
-run DEBIAN_FRONTEND=noninteractive apt-get install -y -q s3cmd |
|
| 23 |
-run DEBIAN_FRONTEND=noninteractive apt-get install -y -q curl |
|
| 22 |
+run DEBIAN_FRONTEND=noninteractive apt-get install -y -q s3cmd curl |
|
| 24 | 23 |
run curl -s -o /go.tar.gz https://go.googlecode.com/files/go1.1.1.linux-amd64.tar.gz |
| 25 | 24 |
run tar -C /usr/local -xzf /go.tar.gz |
| 26 | 25 |
run echo "export PATH=/usr/local/go/bin:$PATH" > /.bashrc |
| 27 | 26 |
run echo "export PATH=/usr/local/go/bin:$PATH" > /.bash_profile |
| 28 |
-run DEBIAN_FRONTEND=noninteractive apt-get install -y -q git |
|
| 29 |
-run DEBIAN_FRONTEND=noninteractive apt-get install -y -q build-essential |
|
| 27 |
+run DEBIAN_FRONTEND=noninteractive apt-get install -y -q git build-essential |
|
| 30 | 28 |
# Packages required to build an ubuntu package |
| 31 |
-run DEBIAN_FRONTEND=noninteractive apt-get install -y -q golang-stable |
|
| 32 |
-run DEBIAN_FRONTEND=noninteractive apt-get install -y -q debhelper |
|
| 33 |
-run DEBIAN_FRONTEND=noninteractive apt-get install -y -q autotools-dev |
|
| 34 |
-run apt-get install -y -q devscripts |
|
| 29 |
+run DEBIAN_FRONTEND=noninteractive apt-get install -y -q golang-stable debhelper autotools-dev devscripts |
|
| 35 | 30 |
# Copy dockerbuilder files into the container |
| 36 | 31 |
add . /src |
| 37 | 32 |
run cp /src/dockerbuilder /usr/local/bin/ && chmod +x /usr/local/bin/dockerbuilder |