Skip to content

Commit

Permalink
Optimize container size by pruning unnecessary package manager data.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored and mattclay committed Jul 20, 2018
1 parent fdc1e92 commit 77be1b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM golang:1.10-stretch
# Install software
RUN apt-get update
RUN apt-get install -y bind9 python3 python3-pip
RUN apt-get update \
&& apt-get install -y bind9 python3 python3-pip \
&& apt-get clean all \
&& rm -rf /var/lib/apt/lists/*;
ADD requirements.txt /root/
RUN pip3 install -r /root/requirements.txt
# Setup bind9
Expand Down

0 comments on commit 77be1b6

Please sign in to comment.