Stop hosts-leaking into the container

This commit is contained in:
Nils Freydank 2023-08-06 21:34:30 +02:00
parent cf5162ba15
commit d28a0fc25e
Signed by: nfr
GPG Key ID: 0F1DEAB2D36AD112
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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