Skip to content

Commit 5a9a0b5

Browse files
author
Aaron O'Mullan
committed
Improve base image to reduce image size
1 parent 929c056 commit 5a9a0b5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

stacks/base/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
FROM ubuntu:12.10
22

3+
# Speedup apt-get
4+
RUN echo 'force-unsafe-io' | tee /etc/dpkg/dpkg.cfg.d/02apt-speedup
5+
6+
# Reduce image size
7+
RUN echo 'DPkg::Post-Invoke {"/bin/rm -f /var/cache/apt/archives/*.deb || true";};' | tee /etc/apt/apt.conf.d/no-cache
8+
39
# Install utilities
410
RUN apt-get -y update
5-
RUN apt-get -y install git
6-
RUN apt-get -y install curl wget
7-
RUN apt-get -y install build-essential
11+
RUN apt-get -y install git-core curl wget build-essential make
812

913
# Command line extras
1014
RUN apt-get -y install vim nano

0 commit comments

Comments
 (0)