From 608cedd8514ea732b17fd28e5b6c1ffbb3ea52a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=82=AD?= Date: Sun, 1 Oct 2023 00:33:14 +0500 Subject: [PATCH] reduce image size --- 10/Dockerfile | 4 +++- 11/Dockerfile | 4 +++- 12/Dockerfile | 4 +++- README.md | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/10/Dockerfile b/10/Dockerfile index b845ce9..8371925 100644 --- a/10/Dockerfile +++ b/10/Dockerfile @@ -1,6 +1,8 @@ FROM debian:10 +ENV DEBIAN_FRONTEND=noninteractive + RUN apt update \ && apt install curl -y --no-install-recommends \ && apt-get clean \ - && rm -rf /var/lib/apt/lists/* + && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* diff --git a/11/Dockerfile b/11/Dockerfile index 1121fe1..4abee09 100644 --- a/11/Dockerfile +++ b/11/Dockerfile @@ -1,6 +1,8 @@ FROM debian:11 +ENV DEBIAN_FRONTEND=noninteractive + RUN apt update \ && apt install curl -y --no-install-recommends \ && apt-get clean \ - && rm -rf /var/lib/apt/lists/* + && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* diff --git a/12/Dockerfile b/12/Dockerfile index 5c9fadf..c3aa1ca 100644 --- a/12/Dockerfile +++ b/12/Dockerfile @@ -1,6 +1,8 @@ FROM debian:12 +ENV DEBIAN_FRONTEND=noninteractive + RUN apt update \ && apt install curl -y --no-install-recommends \ && apt-get clean \ - && rm -rf /var/lib/apt/lists/* + && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* diff --git a/README.md b/README.md index d5c3b4a..6472d6a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ## Multi-arch support -- Install emualtor: +- Install emulator: ```bash docker run --privileged --rm tonistiigi/binfmt --uninstall qemu-* #Uninstall existing docker run --privileged --rm tonistiigi/binfmt --install all