Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Goette <53531335+jcgoette@users.noreply.github.com>2020-11-20 23:18:07 +0300
committerRobert Adam <krzmbrzl@gmail.com>2020-11-21 22:14:07 +0300
commit156eecd7ae3f7e18c668f984437d52a0f454891f (patch)
treecdddcb81342b7502b71023eee8b5df0165d6c7b4 /Dockerfile
parent0d005c6e17f44742c27fbd6d65f62721f9a549f9 (diff)
MAINT: Potentially reduce Docker container size
Add "--no-install-recommends" and "rm -rf /var/lib/apt/lists/*" for potential image size reduction. See: https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends https://cloud.google.com/solutions/best-practices-for-building-containers#reduce_the_amount_of_clutter_in_your_image
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 7b2e40cce..a87dfa69b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,7 +3,7 @@ FROM ubuntu:latest
# needed to install tzdata in disco
ENV DEBIAN_FRONTEND=noninteractive
-RUN apt-get update && apt-get install -y \
+RUN apt-get update && apt-get install --no-install-recommends -y && rm -rf /var/lib/apt/lists/* \
build-essential \
cmake \
pkg-config \
@@ -37,7 +37,7 @@ RUN make -j $(nproc)
FROM ubuntu:latest
RUN adduser murmur
-RUN apt-get update && apt-get install -y \
+RUN apt-get update && apt-get install --no-install-recommends -y && rm -rf /var/lib/apt/lists/* \
libcap2 \
libzeroc-ice3.7 \
'^libprotobuf[0-9]+$' \