From 28b46a72a42949fd5e81396c65a4797a06db69a3 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sun, 12 Mar 2023 10:02:00 +0100 Subject: [PATCH] Avoid interaction in the Docker build process for Ubuntu images --- Makefile | 2 +- docker-files/ubuntu.Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6953d09d..ec39bbb1 100644 --- a/Makefile +++ b/Makefile @@ -133,7 +133,7 @@ flatpak: venv-dev-upgrade ## Generate FlatPack JSON file # Docker # =================================================================== -docker: docker-alpine ## Generate local docker images +docker: docker-alpine docker-ubuntu## Generate local docker images docker-alpine: ## Generate local docker images (Alpine) docker build --target full -f ./docker-files/alpine.Dockerfile -t glances:local-alpine-full . diff --git a/docker-files/ubuntu.Dockerfile b/docker-files/ubuntu.Dockerfile index 4f0383f3..f35e8d13 100644 --- a/docker-files/ubuntu.Dockerfile +++ b/docker-files/ubuntu.Dockerfile @@ -13,6 +13,8 @@ ARG PYTHON_VERSION=3.10 ARG PIP_MIRROR=https://mirrors.aliyun.com/pypi/simple/ FROM nvidia/cuda:${IMAGE_VERSION} as build +ARG DEBIAN_FRONTEND=noninteractive + RUN apt-get update \ && apt-get install -y --no-install-recommends \ python3 \ @@ -93,7 +95,6 @@ FROM nvidia/cuda:${IMAGE_VERSION} as minimal ARG PYTHON_VERSION ARG DEBIAN_FRONTEND=noninteractive -ENV TZ=Asia/Shanghai RUN apt-get update \ && apt-get install -y --no-install-recommends \