diff --git a/build-image.sh b/build-image.sh index 1f50ad4..d43f099 100755 --- a/build-image.sh +++ b/build-image.sh @@ -17,6 +17,8 @@ LOGDIR="${LOGDIR:-$(pwd)/logs}" DOCKER_FILE="${DOCKER_FILE:-$(pwd)/Dockerfile}" podman_build_args=( + # Do not leak the host's /etc/host into the container. + --no-hosts # Limit the memory to be used. --memory=20G --memory-swap=1G diff --git a/build-packages.sh b/build-packages.sh index 7fd27cb..dd5d150 100755 --- a/build-packages.sh +++ b/build-packages.sh @@ -17,6 +17,8 @@ LOGDIR="${LOGDIR:-$(pwd)/logs}" PACKAGE_USE="${PACKAGE_USE:-$(pwd)/package.use}" podman_build_args=( + # Do not leak the host's /etc/host into the container. + --no-hosts # Remove the container after usage. --rm # Allow interactive questsions by portage