Skip to content

Commit 39d76e5

Browse files
authored
fix: update apt-get install command to use Dpkg options (#5503)
* fix: update apt-get install command to use Dpkg options Signed-off-by: Frost Ming <[email protected]>
1 parent d45b717 commit 39d76e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bentoml/_internal/container/frontend/dockerfile/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
},
108108
"default_install_command": "apt-get update && apt-get install -q -y --no-install-recommends "
109109
"--allow-remove-essential ca-certificates gnupg2 bash build-essential git",
110-
"install_command": "apt-get install -q -y {packages}",
110+
"install_command": "apt-get install -q -y -o Dpkg::Options::=--force-confdef {packages}",
111111
},
112112
"alpine": {
113113
"supported_python_versions": SUPPORTED_PYTHON_VERSIONS,

src/bentoml/_internal/container/frontend/dockerfile/templates/base_debian.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ ENV DEBIAN_FRONTEND=noninteractive
99
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
1010
{% call common.RUN(__enable_buildkit__) -%} {{ common.mount_cache(__lib_apt__) }} {{ common.mount_cache(__cache_apt__) }} {% endcall -%} set -eux && \
1111
apt-get update -y && \
12-
apt-get install -q -y --no-install-recommends --allow-remove-essential \
12+
apt-get install -q -y -o Dpkg::Options::=--force-confdef --no-install-recommends --allow-remove-essential \
1313
ca-certificates gnupg2 bash build-essential curl {% if __options__system_packages is not none %}{{ __options__system_packages | join(' ') }}{% endif %}
1414
{% endblock %}

0 commit comments

Comments
 (0)