mirror of https://github.com/nicolargo/glances
Avoid interaction in the Docker build process for Ubuntu images
parent
43291246de
commit
28b46a72a4
2
Makefile
2
Makefile
|
@ -133,7 +133,7 @@ flatpak: venv-dev-upgrade ## Generate FlatPack JSON file
|
||||||
# Docker
|
# 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-alpine: ## Generate local docker images (Alpine)
|
||||||
docker build --target full -f ./docker-files/alpine.Dockerfile -t glances:local-alpine-full .
|
docker build --target full -f ./docker-files/alpine.Dockerfile -t glances:local-alpine-full .
|
||||||
|
|
|
@ -13,6 +13,8 @@ ARG PYTHON_VERSION=3.10
|
||||||
ARG PIP_MIRROR=https://mirrors.aliyun.com/pypi/simple/
|
ARG PIP_MIRROR=https://mirrors.aliyun.com/pypi/simple/
|
||||||
FROM nvidia/cuda:${IMAGE_VERSION} as build
|
FROM nvidia/cuda:${IMAGE_VERSION} as build
|
||||||
|
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
python3 \
|
python3 \
|
||||||
|
@ -93,7 +95,6 @@ FROM nvidia/cuda:${IMAGE_VERSION} as minimal
|
||||||
ARG PYTHON_VERSION
|
ARG PYTHON_VERSION
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
ENV TZ=Asia/Shanghai
|
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
|
|
Loading…
Reference in New Issue