From 24479e68ab53fcd9f82c842455cb21c402cb9e2e Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Tue, 28 Apr 2020 18:25:38 +0800 Subject: [PATCH] Add `--no-install-recommends` to `apt-get` in Dockerfile (#221) Prevent to install unnecessary recommended packages, make it lighter. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 546c9a9..c84ecda 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM python:3.8-slim-buster -RUN apt-get update && apt-get install -y libcap2-bin && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install --no-install-recommends -y libcap2-bin && rm -rf /var/lib/apt/lists/* RUN setcap cap_net_bind_service=+ep /usr/local/bin/python3.8 RUN pip3 --no-cache-dir install cryptography uvloop