From 2115a22a35b063b40f1e81ea5528f160ac9ca3ec Mon Sep 17 00:00:00 2001 From: jcardozo Date: Mon, 16 Sep 2024 15:37:13 +0200 Subject: [PATCH] Update Dockerfile to improve installation process Redefined the installation by setting DEBIAN_FRONTEND to noninteractive. https://manpages.debian.org/testing/debconf-doc/debconf.7.en.html#DEBIAN_FRONTEND --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ffa70c9..3bc5cfe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,15 @@ # Use Ubuntu as the base image FROM ubuntu:24.04 -# Install most essential tools (curl and ca-certificates) +# Update package list and install essential tools (curl, ca-certificates) RUN apt-get update && \ - apt-get install -y \ + # Install packages without prompts and recommendations + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ curl \ - ca-certificates \ - --no-install-recommends && \ + ca-certificates && \ + # Clean up apt cache to reduce image size apt-get clean && \ + # Delete downloaded package lists rm -rf /var/lib/apt/lists/* # Install Nix Package Manager using the Determinate Systems Nix installer