Skip to content

Conversation

@schlusslicht
Copy link
Contributor

This pull request introduces a minor alteration to the Dockerfile build stages: By creating an /etc/apt/apt.configuration file with appropriate values within the base build stage, all subsequent stages will inherit this configuration and no further arguments to individual invokations of apt-get have to be supplied.

The created /etc/apt/apt.configuration replaces the following arguments to apt-get globally:

apt-get -y --yes                   # APT::Get::Assume-Yes "true";
apt-get --no-install-recommends    # APT::Install-Recommends "0";
apt-get --no-install-suggests      # APT::Install-Suggests "0";
apt-get -o APT::Sandbox::User=root # APT::Sandbox::User "root";

@schlusslicht
Copy link
Contributor Author

Please make sure all relevant build contexts support the heredoc notation!

@bkis bkis changed the base branch from main to development September 28, 2024 20:51
@bkis
Copy link
Member

bkis commented Sep 28, 2024

The created /etc/apt/apt.configuration

❤️

@bkis bkis self-assigned this Sep 28, 2024
@bkis
Copy link
Member

bkis commented Sep 30, 2024

Please make sure all relevant build contexts support the heredoc notation!

Yeah this feature seems old enough.

@bkis bkis merged commit 996e004 into VedaWebProject:development Sep 30, 2024
@schlusslicht schlusslicht deleted the dev-apt-defaults branch May 23, 2025 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants