Dockerfile: Make DEBIAN_FRONTEND non-persistent

Only use this setting during non-interactive build, not in the possibly
interactive image.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka 2021-01-02 15:48:05 +01:00
parent a18c414b81
commit cc159c471f
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@
FROM debian:buster-slim
ENV DEBIAN_FRONTEND=noninteractive
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y locales && \

View File

@ -2,6 +2,8 @@
FROM ghcr.io/siemens/kas/kas:latest
ARG DEBIAN_FRONTEND=noninteractive
ENV LC_ALL=en_US.UTF-8
RUN echo 'deb http://deb.debian.org/debian buster-backports main' > /etc/apt/sources.list.d/buster-backports.list && \
echo "Package: qemu-user-static\nPin: release n=buster-backports\nPin-Priority: 501\n\nPackage: *\nPin: release n=buster-backports\nPin-Priority: -1" > /etc/apt/preferences.d/qemu-user-static && \